baseof.html 3.2 KB

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