Hugo Dark Theme Site Generator https://after-dark.habd.as
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

baseof.html 2.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <!DOCTYPE html>
  2. <html lang="{{ .Site.LanguageCode }}">
  3. <head>
  4. {{ .Hugo.Generator }}
  5. <meta charset="utf-8">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <title>{{ block "title" . }}{{ .Title }} | {{ .Site.Title }}{{ end }}</title>
  8. <meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{ if .IsPage }}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}">
  9. <meta name="keywords" content="{{ if .Keywords }}{{ delimit .Keywords ", " }}{{ else if and .IsPage .Params.tags }}{{ delimit .Params.tags ", " }}{{ else }}{{ range $term, $val := .Site.Taxonomies.categories }}{{ lower (humanize $term) }}, {{ end }}{{ end }}">
  10. {{ $default_noindex_kinds := slice "section" "taxonomy" "taxonomyTerm" }}
  11. {{ $noindex_kinds := .Site.Params.noindex_kinds | default $default_noindex_kinds }}
  12. {{ $is_noindex_true := and (isset .Params "noindex") .Params.noindex }}
  13. {{ if or (in $noindex_kinds .Kind) ($is_noindex_true) }}
  14. <meta name="robots" content="noindex">
  15. {{ end }}
  16. {{ partial "meta/name-author.html" . }}
  17. {{ template "_internal/opengraph.html" . }}
  18. {{ template "_internal/twitter_cards.html" . }}
  19. {{ partial "meta/ogimage-maybe.html" . }}
  20. {{ partial "meta/telegram-channel-maybe.html" . }}
  21. {{ partial "meta/theme-color.html" . }}
  22. {{ if eq .Kind "home" }}
  23. {{ partial "head/site-verification.html" . }}
  24. {{ end }}
  25. {{ partial "meta/http-referrer.html" . }}
  26. {{ with .Site.Params.modules }}
  27. {{ with .voyeur }}
  28. {{ partial "modules/voyeur/index.html" . }}
  29. {{ end }}
  30. {{ end }}
  31. {{ if .RSSLink }}
  32. <link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}">
  33. {{ end }}
  34. <link rel="canonical" href="{{ .Permalink }}">
  35. {{ if (isset .Params "prev") }}
  36. <link rel="prev" href="{{ .Params.prev }}">
  37. {{ end }}
  38. {{ if (isset .Params "next") }}
  39. <link rel="next" href="{{ .Params.next }}">
  40. {{ end }}
  41. {{ partial "head/favicon.html" . }}
  42. {{ partial "global-styles.html" . }}
  43. {{ partial "async-scripts.html" . }}
  44. </head>
  45. {{ $hackcss_disabled := .Site.Params.hackcss.disabled | default false }}
  46. {{ $hackcss_mode := .Site.Params.hackcss.mode | default "hack" }}
  47. {{ $hackcss_palette := .Site.Params.hackcss.palette | default "dark" }}
  48. <body class="{{ if ne $hackcss_disabled true }}{{ $hackcss_mode }} {{ $hackcss_palette }} main container{{ end }}">
  49. <header>{{ block "header" . }}{{ end }}</header>
  50. <main>{{ block "main" . }}{{ end }}</main>
  51. <footer>{{ block "footer" . }}{{ end }}</footer>
  52. </body>
  53. </html>