X-Git-Url: https://git.danix.xyz/?a=blobdiff_plain;f=layouts%2Fpartials%2Fhead.html;h=e100d069edb20143129455c58043bda88dbec5b9;hb=b8ef5fe023a064d1e609b257786822095d85bb96;hp=e69de29bb2d1d6434b8b29ae775ad8c2e48c5391;hpb=dab7cde1ed21d5344bfc8e1d279e2f117b74ffef;p=theme-danix.xyz.git diff --git a/layouts/partials/head.html b/layouts/partials/head.html index e69de29..e100d06 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -0,0 +1,27 @@ + + + + + + {{ $style_options := (dict "targetPath" "css/style.css" "outputStyle" "compressed" "transpiler" "dartsass" "enableSourceMap" (not hugo.IsProduction)) }} + {{ $style := resources.Get "sass/main.scss" | resources.ToCSS $style_options }} + + + {{ partial "funcs/favicon.html" . }} + + + {{ with .OutputFormats.Get "rss" -}} + {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} + {{ end -}} + + {{ $title := print .Site.Title " ⋇ " .Title }} + {{ if .IsHome }}{{ $title = .Site.Title }}{{ end }} + {{ $title }} + + {{ template "_internal/opengraph.html" . }} + {{ template "_internal/schema.html" . }} + {{ template "_internal/twitter_cards.html" . }} + + {{- partial "head-addition.html" . -}} + +