jk.nipponalba.scot website https://jk.nipponalba.scot
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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

44 lines
2.0 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. {{ define "main" }}
  2. <article class="post h-entry entry contents">
  3. <div class="{{.Type}}" data-post-type="{{.Type }}"><div class="p-author author" style="display:none;"><a rel="author" class="p-name u-url u-uid" rel="me" href="https://jk.nipponalba.scot">{{ .Site.Params.Title }}</a><img class="u-photo" src="/images/profile.jpg" /></div>
  4. <div class="post-content">{{ with .Page.Params.Image }}{{ partial "taxonomy/image.html" . }}{{ end }}<h3 class="post-title p-name entry-title">{{ .Title }}</h3>
  5. <aside>
  6. {{ if eq .Type "article" }}<div class="info">
  7. <i class="fa fa-sun"></i><a class="u-url" href="{{ .RelPermalink }}"><span class="date"><time class="dt-published" datetime="{{ .Date.Format "2 Jan 2006 15:04 GMT" }}">{{ .Date.Format "Mon, Jan 2, 2006" }}</time></span></a>
  8. <i class="fa fa-clock"></i><span class="reading-time">{{ .ReadingTime }}-minute read</span>
  9. </div>{{end}}
  10. <div class="e-content">{{ .Content }}
  11. {{ if eq .Type "photo"}}
  12. <div class="photos">
  13. {{ range .Page.Params.Photo }}
  14. <a class="u-url" href="{{ . }}"><img class="u-photo thumb" src="{{ replace . "800." "200."}}"/></a>
  15. {{end}}
  16. </div>
  17. {{end}}
  18. </div>
  19. <div class="post-footer">
  20. {{ if not (eq .Type "article")}}<a class="u-url" href="{{ .RelPermalink }}"><span class="date"><time class="dt-published" datetime="{{ .Date.Format "2 Jan 2006 15:04 GMT" }}">{{ .Date.Format "Mon, Jan 2, 2006" }}</time></span>{{end}}
  21. <div class="info">
  22. {{ with .Page.Params.Blog }}{{ partial "taxonomy/blog.html" . }}{{ end }}
  23. {{ with .Page.Params.Categories }}{{ partial "taxonomy/categories.html" . }}{{ end }}
  24. {{ with .Page.Params.Tags }}{{ partial "taxonomy/tags.html" . }}{{ end }}
  25. </div>
  26. </div>
  27. <a href="https://brid.gy/publish/mastodon"></a>
  28. {{ if eq .Type "article"}}
  29. {{ if .Site.DisqusShortname -}}
  30. <div id="fb_comments_container">
  31. <h2>Comments</h2>
  32. {{ template "_internal/disqus.html" . }}
  33. </div>
  34. {{- end }}
  35. {{ end }}
  36. </aside></div>
  37. </div>
  38. </article>
  39. {{ end }}