baseof.html 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  7. <meta name="color-scheme" content="light dark">
  8. <meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}">
  9. {{ if .IsHome -}}
  10. <meta name="keywords" content="{{ range .Keywords }}{{ . }}{{ end }}">
  11. {{ end }}
  12. {{- template "_internal/schema.html" . }}
  13. {{- template "_internal/opengraph.html" . }}
  14. {{- template "_internal/twitter_cards.html" . }}
  15. <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png?v=1">
  16. <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png?v=1">
  17. <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png?v=1">
  18. <link rel="manifest" href="/site.webmanifest?v=1">
  19. <link rel="shortcut icon" href="/favicon.ico?v=1">
  20. <title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{ . }} - {{ end }}{{ .Site.Title }}{{ end }}</title>
  21. <link rel="dns-prefetch" href="//pb.zak.ee">
  22. <link rel="dns-prefetch" href="//seccdn.libravatar.org">
  23. {{ range .AlternativeOutputFormats -}}
  24. {{ printf `<link rel="%s" type="%s" href="%s" title="%s">` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }}
  25. {{ end -}}
  26. {{ with resources.Get "scss/style.scss" | toCSS | minify | fingerprint }}
  27. <link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}">
  28. {{ end }}
  29. </head>
  30. <body class="wrapper">
  31. <a class="skip-to-content-link tdln" href="#main">Skip to content</a>
  32. <header class="site-header tdln">
  33. <a href="{{"" | relURL}}" class="site-title">{{ .Site.Title }}</a>
  34. {{ with site.Menus.main -}}
  35. <nav class="site-nav">
  36. {{- range . }}
  37. {{- if or ($.HasMenuCurrent .Menu .) ($.IsMenuCurrent .Menu .) }}
  38. <a class="active" aria-current="page" href="{{ .URL }}" title="{{ .Params.description }}">{{ .Name }}</a>
  39. {{- else }}
  40. <a href="{{ .URL }}" title="{{ .Params.description }}">{{ .Name }}</a>
  41. {{- end -}}
  42. {{ end }}
  43. </nav>
  44. {{ end -}}
  45. <div class="rss-icon">
  46. <a href="{{ "index.xml" | absURL }}" target="_blank" title="RSS"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-rss"><path d="M4 11a9 9 0 0 1 9 9"></path><path d="M4 4a16 16 0 0 1 16 16"></path><circle cx="5" cy="19" r="1"></circle></svg></a>
  47. </div>
  48. </header>
  49. <main class="site-main" id="main">
  50. {{ block "main" . }}{{ end }}
  51. </main>
  52. <footer class="site-footer dim">
  53. <div>&copy; {{ now.Format "2006" }} <a href="{{ .Site.BaseURL }}">{{ .Site.Params.author.name }}</a>. Content licensed under <a href="https://creativecommons.org/licenses/by-nc/4.0/deed.zh" target="_blank" rel="noopener">CC BY-NC 4.0</a>.</div>
  54. <div><a href="https://xn--sr8hvo.ws/%F0%9F%90%A3%F0%9F%8E%91%F0%9F%8D%A5/previous">←</a> An <a href="https://xn--sr8hvo.ws/">IndieWeb Webring</a> 🕸💍 <a href="https://xn--sr8hvo.ws/%F0%9F%90%A3%F0%9F%8E%91%F0%9F%8D%A5/next">→</a></div>
  55. </footer>
  56. <script src="/js/instantpage-5.2.0.js" type="module" integrity="sha384-jnZyxPjiipYXnSU0ygqeac2q7CVYMbh84q0uHVRRxEtvFPiQYbXWUorga2aqZJ0z"></script>
  57. </body>
  58. </html>