My public website https://www.chameth.com/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

head.html 2.9KB

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