baseof.html 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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?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. <link rel="openid.delegate" href="https://zak.ee/">
  24. <link rel="openid.server openid2.provider" href="https://indieauth.com/openid">
  25. <link rel="authorization_endpoint" href="https://indieauth.com/auth">
  26. {{ range .AlternativeOutputFormats -}}
  27. {{ printf `<link rel="%s" type="%s" href="%s" title="%s">` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }}
  28. {{ end -}}
  29. {{ $style := resources.Get "scss/style.scss" | resources.ExecuteAsTemplate "css/style.css" . | toCSS | minify |
  30. fingerprint -}}
  31. <link rel="stylesheet" href="{{ $style.RelPermalink }}" {{ printf "integrity=%q" $style.Data.Integrity | safeHTMLAttr}}>
  32. </head>
  33. <body>
  34. {{ if not .IsHome -}}
  35. <header>
  36. <a title="主页" href="{{"" | relURL}}" class="home">← {{.Site.Title}}</a>
  37. </header>
  38. {{- end -}}
  39. {{ block "main" . }}
  40. {{ end }}
  41. {{- if not .IsHome }}
  42. <hr>
  43. {{- end }}
  44. <nav class="wrapper site-nav">
  45. <h2>Index / 索引</h2>
  46. <ul class="lsc">
  47. {{- range .Site.Menus.main -}}
  48. <li>
  49. <a href="{{ .URL }}" title="{{ .Params.description }}">{{ .Name }}</a>
  50. </li>
  51. {{- end }}
  52. </ul>
  53. </nav>
  54. <footer class="wrapper">
  55. <h2>About / 关于</h2>
  56. <ul class="lsn dim site-footer">
  57. <li>&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>.</li>
  58. <li>Check "<a href="/about/" title="关于">About</a>" to learn more. Keep track via <a href="{{ "writing/index.xml" | absURL }}" target="_blank">RSS</a>.</li>
  59. <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>
  60. </ul>
  61. </footer>
  62. <script src="/js/instantpage-5.2.0.js" type="module" integrity="sha384-jnZyxPjiipYXnSU0ygqeac2q7CVYMbh84q0uHVRRxEtvFPiQYbXWUorga2aqZJ0z"></script>
  63. </body>
  64. </html>