baseof.html 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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="dark light">
  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">
  16. <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
  17. <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
  18. <link rel="manifest" href="/site.webmanifest">
  19. <link rel="mask-icon" href="/safari-pinned-tab.svg" color="#54bab9">
  20. <link rel="shortcut icon" href="/favicon.ico">
  21. <title>{{.Title}}</title>
  22. <link rel="dns-prefetch" href="//pb.zak.ee">
  23. <link rel="dns-prefetch" href="//cravatar.cn">
  24. {{ range .AlternativeOutputFormats -}}
  25. {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }}
  26. {{ end -}}
  27. {{ $style := resources.Get "scss/style.scss" | resources.ExecuteAsTemplate "css/style.css" . | toCSS | minify |
  28. fingerprint -}}
  29. <link rel="stylesheet" href="{{ $style.RelPermalink }}" {{ printf "integrity=%q" $style.Data.Integrity | safeHTMLAttr}}>
  30. <script async src="https://analytics.zak.ee/script.js" data-website-id="7330213f-48d1-46e2-b669-758ccca4ba47" data-domains="zak.ee"></script>
  31. </head>
  32. <body>
  33. {{ block "main" . }}
  34. {{ end }}
  35. <nav class="wrapper">
  36. <h2>Index / 索引</h2>
  37. <ul class="lsc">
  38. {{- range .Site.Menus.main -}}
  39. <li>
  40. <a href="{{ .URL }}">{{ .Name }}</a>
  41. </li>
  42. {{- end }}
  43. </ul>
  44. </nav>
  45. <footer class="wrapper">
  46. <h2>About / 关于</h2>
  47. <ul class="lsn dim site-footer">
  48. <li>&copy; {{ now.Format "2006" }} <a href="{{ .Site.BaseURL }}">{{ .Site.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>.</li>
  49. <li>View the "<a href="/about/">About</a>" page to learn more. Keep track via <a href="{{ "writing/index.xml" | absURL }}" target="_blank" title="RSS">RSS</a>.</li>
  50. <li class="tdln"><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></li>
  51. </ul>
  52. </footer>
  53. <script src="/js/instantpage-5.2.0.js" type="module" integrity="sha384-jnZyxPjiipYXnSU0ygqeac2q7CVYMbh84q0uHVRRxEtvFPiQYbXWUorga2aqZJ0z"></script>
  54. </body>
  55. </html>