baseof.html 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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. <header class="site-header">
  35. <div class="header-inner">
  36. {{ with site.Menus.main -}}
  37. <nav class="site-nav">
  38. {{- range . }}
  39. {{- if or ($.HasMenuCurrent .Menu .) ($.IsMenuCurrent .Menu .) }}
  40. <a class="active" aria-current="page" href="{{ .URL }}" title="{{ .Params.description }}">{{ .Name }}</a>
  41. {{- else }}
  42. <a href="{{ .URL }}" title="{{ .Params.description }}">{{ .Name }}</a>
  43. {{- end -}}
  44. {{ end }}
  45. </nav>
  46. {{ end -}}
  47. {{ if .Params.toc -}}
  48. <details open>
  49. <summary>目录</summary>
  50. {{ .TableOfContents }}
  51. </details>
  52. {{- end }}
  53. </div>
  54. </header>
  55. <div class="wrapper">
  56. <main>
  57. {{ if not .IsHome -}}
  58. <a title="主页" href="{{"" | relURL}}" class="tdln dim back-btn">←</a>
  59. {{ end -}}
  60. <h1>{{.Title}}</h1>
  61. {{ block "main" . }}
  62. {{ end }}
  63. </main>
  64. <footer class="site-footer">
  65. <ul class="lsn dim">
  66. <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>
  67. <li>Check "<a href="/about/" title="关于">About</a>" to learn more. Keep track via <a href="{{ "index.xml" | absURL }}" target="_blank">RSS</a>.</li>
  68. <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>
  69. </ul>
  70. </footer>
  71. </div>
  72. <script src="/js/instantpage-5.2.0.js" type="module" integrity="sha384-jnZyxPjiipYXnSU0ygqeac2q7CVYMbh84q0uHVRRxEtvFPiQYbXWUorga2aqZJ0z"></script>
  73. </body>
  74. </html>