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.

53 lines
1.9 KiB

  1. <!DOCTYPE html>
  2. <html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-US{{ end }}">
  3. <head>
  4. {{ partial "head.html" . }}
  5. </head>
  6. <body>
  7. {{ partial "nav.html" . }}
  8. <section id="wrapper">
  9. <article class="post">
  10. <header>
  11. <h1>{{ .Title }}</h1>
  12. <h2 class="headline">{{ .Date.Format "January 2, 2006" }}</h2>
  13. </header>
  14. <section id="post-body">
  15. {{ .Content }}
  16. </section>
  17. </article>
  18. <footer id="post-meta" class="clearfix">
  19. {{ with .Site.Params.twitter }}<a href="http://twitter.com/{{ . }}">{{ end }}
  20. <img class="avatar" src="{{ .Site.BaseURL }}images/avatar.png">
  21. <div>
  22. <span class="dark">{{ .Site.Params.name }}</span>
  23. <span>{{ .Site.Params.bio }}</span>
  24. </div>
  25. {{ with .Site.Params.twitter }}</a>{{ end }}
  26. <section id="sharing">
  27. {{ partial "share.html" . }}
  28. </section>
  29. </footer>
  30. {{ if gt (len .Site.Params.disqusShortname) 0 }}
  31. {{ partial "disqus.html" . }}
  32. {{ end }}
  33. <ul id="post-list" class="archive readmore">
  34. <h3>Read more</h3>
  35. {{ range first 10 .Site.Pages }}
  36. {{ $url := replace .Permalink ( printf "%s" .Site.BaseURL) "" }}
  37. {{ if ne $url "about/" }}
  38. <li>
  39. <a href="{{ .Permalink }}">{{ .Title }}<aside class="dates">{{ .Date.Format "Jan 2" }}</aside></a>
  40. </li>
  41. {{ end }}
  42. {{ end }}
  43. </ul>
  44. {{ partial "footer.html" . }}
  45. </section>
  46. {{ partial "js.html" . }}
  47. </body>
  48. </html>