baseof.html 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <!DOCTYPE html>
  2. <html lang="{{ site.LanguageCode }}">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. {{ hugo.Generator }}
  7. {{ if site.Params.schema }}{{ template "_internal/schema.html" . }}{{ end }}
  8. {{ if site.Params.opengraph }}{{ template "_internal/opengraph.html" . }}{{ end }}
  9. {{ if site.Params.twittercards }}{{ template "_internal/twitter_cards.html" . }}{{ end }}
  10. <title>
  11. {{ if eq .Title site.Title }}
  12. {{ site.Title }}
  13. {{ else }}
  14. {{ with .Title }}{{ . }} | {{ end }}{{ site.Title }}
  15. {{ end }}
  16. </title>
  17. <link rel="canonical" href="{{ .Permalink }}">
  18. {{ range .AlternativeOutputFormats }}
  19. {{ printf "<link rel=%q type=%q href=%q title=%q>" .Rel .MediaType .Permalink site.Title | safeHTML }}
  20. {{ end }}
  21. {{ resources.Get "css/base.temp.css" | resources.ExecuteAsTemplate "css/base.css" . | minify | fingerprint | .Page.Scratch.SetInMap "css" "base" }}
  22. {{/*
  23. In this block Hugo is forced to load the page's content, effectively
  24. pre-rendering all its shortcodes. Thanks to this pre-render,
  25. shortcodes can load additional CSS and JS resources by adding them
  26. to the "css" and "js" entries of the global .Scratch variable.
  27. */}}
  28. {{ block "loadshortcodes" . }}{{ with .Content }}{{ end }}{{ end }}
  29. {{ range .Scratch.GetSortedMapValues "css" }}
  30. <link rel="stylesheet" href="{{ .Permalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
  31. {{ end }}
  32. {{ range .Scratch.GetSortedMapValues "js" }}
  33. <script defer src="{{ .Permalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous"></script>
  34. {{ end }}
  35. </head>
  36. <body>
  37. {{ partialCached "banner.html" . }}
  38. <main>
  39. <div class="u-wrapper">
  40. <div class="u-padding">
  41. {{ block "main" . }}{{ end }}
  42. </div>
  43. </div>
  44. </main>
  45. {{ partialCached "footer.html" . }}
  46. </body>
  47. </html>