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.

63 lines
3.5 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
  1. {{ define "main" }}
  2. {{ if not (eq .Type "response")}}
  3. <article class="post h-entry entry contents">
  4. <div class="author" style="display:none;">
  5. <a rel="author" class="u-author h-card" rel="me" href="https://jk.nipponalba.scot">{{ .Site.Params.Title }}<img src="/images/profile.jpg"/></a>
  6. </div>
  7. <div class="post-content">{{ with .Page.Params.Image }}{{ partial "taxonomy/image.html" . }}{{ end }}<h3 class="post-title p-name entry-title">{{ .Title }}</h3>
  8. <aside>
  9. {{ if eq .Type "article" }}<div class="info">
  10. <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>
  11. <i class="fa fa-clock"></i><span class="reading-time">{{ .ReadingTime }}-minute read</span>
  12. </div>{{end}}
  13. <div class="e-content">{{ .Content }}
  14. {{ if eq .Type "photo"}}
  15. <div class="photos">
  16. {{ range .Page.Params.Photo }}
  17. <a class="u-url" href="{{ . }}"><img class="u-photo thumb" src="{{ replace . "800." "200."}}"/></a>
  18. {{end}}
  19. </div>
  20. {{end}}
  21. </div>
  22. <div class="post-footer">
  23. {{ if not (eq .Type "article")}}<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}}
  24. <div class="info">
  25. {{ with .Page.Params.Blog }}{{ partial "taxonomy/blog.html" . }}{{ end }}
  26. {{ with .Page.Params.Categories }}{{ partial "taxonomy/categories.html" . }}{{ end }}
  27. {{ with .Page.Params.Tags }}{{ partial "taxonomy/tags.html" . }}{{ end }}
  28. </div>
  29. </div>
  30. <a href="https://brid.gy/publish/mastodon"></a>
  31. {{ if eq .Type "article"}}
  32. {{ if .Site.DisqusShortname -}}
  33. <div id="fb_comments_container">
  34. <h2>Comments</h2>
  35. {{ template "_internal/disqus.html" . }}
  36. </div>
  37. {{- end }}
  38. {{ end }}
  39. </aside></div>
  40. </article> {{ else }}
  41. <section data-post-type="{{ .Params.posttype }}" data-post-id="{{ .Params.slug }}" class="h-entry">
  42. <div class="author" style="display:none;">
  43. <a rel="author" class="u-author h-card" rel="me" href="https://jk.nipponalba.scot">{{ .Site.Params.Title }}<img src="/images/profile.jpg"/></a>
  44. </div>
  45. <aside>
  46. <article class="u-{{ .Params.posttype }} h-cite">
  47. {{ if .Params.inreplyto }}<p> Replied to {{ end }}
  48. {{ if .Params.likeof }}<p> Liked {{ end }}
  49. {{ if .Params.repostof }}<p>Shared {{ end }}
  50. someone's
  51. {{ if .Params.likeof }}<a href="{{ .Params.likeof }}" class="link u-url"> post</a>{{ end }}
  52. {{ if .Params.inreplyto }}<a href="{{ .Params.inreplyto }}" class="link u-url"> post</a>{{ end }}
  53. {{ if .Params.repostof }}<a href="{{ .Params.repostof }}" class="link u-url"> post</a>{{ end }}</p>
  54. {{ if .Content }}<div class="e-content">{{ .Content }}</div><br/> {{end}}
  55. <div class="post-footer"><span class="date"><time class="dt-published" datetime="{{ .Date.Format "2 Jan 2006 15:04 GMT" }}">{{ .Date.Format "02/01/2006 15:04 GMT" }}</time></span></div>
  56. </article>
  57. </aside>
  58. </section>
  59. {{end}}
  60. {{end}}