My public website https://www.chameth.com/
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

head.html 2.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <title>
  5. {{ if $.IsPage }}
  6. {{ .Title }}
  7. &middot;
  8. {{ .Site.Title }}
  9. {{ else }}
  10. {{ .Title }}
  11. {{ if not $.IsHome }}
  12. &middot;
  13. {{ .Site.Title }}
  14. {{ end }}
  15. {{ end }}
  16. </title>
  17. <meta charset="utf-8">
  18. <meta name="viewport" content="width=device-width, initial-scale=1" />
  19. {{ $style := resources.Get "style/style.sass" | toCSS (dict "outputStyle" "compressed") | fingerprint }}
  20. <link rel="stylesheet" href="{{ $style.Permalink }}">
  21. <link rel="canonical" href="{{ .Permalink }}" />
  22. {{ with .Site.GetPage "home" }}
  23. {{ with .OutputFormats.Get "RSS" }}
  24. <link href="{{ .RelPermalink }}" rel="alternate" type="application/rss+xml" title="{{ $.Site.Title }} - all posts" />
  25. {{ end }}
  26. {{ end }}
  27. {{ if $.IsPage }}
  28. <meta name="twitter:card" content="summary" />
  29. <meta name="twitter:site" content="@MD87_" />
  30. <meta name="twitter:creator" content="@MD87_" />
  31. <meta property="og:url" content="{{ .Permalink }}" />
  32. <meta property="og:title" content="{{ .Title }}" />
  33. {{ if $.Param "description" }}
  34. <meta property="og:description" content="{{ $.Param "description" | htmlEscape }}" />
  35. {{ end }}
  36. {{ if $.Param "image" }}
  37. <meta property="og:image" content="{{ $.Param "image" | absURL }}" />
  38. {{ end }}
  39. {{ end }}
  40. </head>
  41. <body id="top">
  42. <header id="header">
  43. <div class="inner">
  44. <h1><a href="/">Chameth.com</a></h1>
  45. <p>Personal website of Chris&nbsp;Smith</p>
  46. <section id="posts">
  47. <ul>
  48. {{ range first 3 (where site.RegularPages "Type" "post") }}
  49. <li class="recent">
  50. <a href="{{ .RelPermalink }}">{{ .Title }}</a>
  51. <p>{{ .Date.Format "Jan 2, 2006" }}</p>
  52. </li>
  53. {{ end }}
  54. <li>
  55. <a href="/index">All articles</a>
  56. </li>
  57. </ul>
  58. </section>
  59. <section id="identities">
  60. <ul class="fa-ul">
  61. <li id="twitter">
  62. <i class="fa-li fa-lg fa fa-twitter" aria-hidden="true"></i>
  63. <a href="https://twitter.com/MD87_" title="My twitter account">MD87_</a>
  64. </li>
  65. <li id="github">
  66. <i class="fa-li fa-lg fa fa-github" aria-hidden="true"></i>
  67. <a href="https://github.com/csmith" title="My GitHub account">csmith</a>
  68. </li>
  69. <li id="pgp">
  70. <i class="fa-li fa-lg fa fa-key" aria-hidden="true"></i>
  71. <a href="/pgp/" title="My PGP key">
  72. 460E 2723 CDB6 701A D929<br>
  73. 89D1 F843 D93A 1640 2FE2
  74. </a>
  75. </li>
  76. </ul>
  77. </section>
  78. </div>
  79. </header>
  80. <div id="main">