head.html 928 B

123456789101112131415161718192021222324252627
  1. <meta http-equiv="content-type" content="text/html; charset=utf-8">
  2. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  3. <meta name="description" content="{{.Description | default .Site.Params.SiteDescription}}">
  4. {{ hugo.Generator }}
  5. <!-- Permalink & RSSlink -->
  6. <link rel="canonical" href="{{ .Permalink }}" >
  7. {{- with .OutputFormats.Get "RSS" }}
  8. <link href="{{ .Permalink }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }}" >
  9. <link href="{{ .Permalink }}" rel="feed" type="application/rss+xml" title="{{ $.Site.Title }}" >
  10. {{- end -}}
  11. {{ $vars := dict
  12. "color" (or site.Params.styles.color "blue")
  13. }}
  14. {{ $options := dict
  15. "targetPath" "css/style.css"
  16. "transpiler" "dartsass"
  17. "vars" $vars
  18. }}
  19. {{ $style := resources.Get "sass/main.scss" | toCSS $options | minify | fingerprint }}
  20. <link href="{{ $style.RelPermalink }}" rel="stylesheet">
  21. {{ partial "custom-head.html" . }}