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.

76 lines
3.9 KiB

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 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><b>{{ .Description }}</b>
  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 href="{{ . }}"><img class="u-photo thumb" src="{{ replace . "800." "300."}}"/></a>
  18. {{end}}
  19. </div>
  20. {{end}}
  21. {{ if eq .Type "article" }}<div class="p-summary" style="display:none">
  22. {{ .Page.Params.summary }}<br/>
  23. </div>
  24. {{ end }}<br/>
  25. </div>
  26. <div class="post-footer-page">
  27. <div class="date"><time class="dt-published" datetime="{{ .Date.Format "2 Jan 2006 15:04 GMT" }}">{{ .Date.Format "Mon, Jan 2, 2006" }}</time></div>
  28. {{ $pathJSON := (print .Permalink "bridgy.json") }}
  29. {{ $relpathJSON := (print .RelPermalink "bridgy.json") }}
  30. {{ if fileExists $relpathJSON }}
  31. <div class="syndication">
  32. {{ $mJSON := getJSON $pathJSON }}
  33. Syndicated to <a href="{{ printf $mJSON.url}}">Pleroma</a>
  34. </div>
  35. {{ end }}
  36. <div class="info">
  37. {{ with .Page.Params.Blog }}{{ partial "taxonomy/blog.html" . }}{{ end }}
  38. {{ with .Page.Params.category }}{{ partial "taxonomy/categories.html" . }}{{ end }}
  39. {{ with .Page.Params.tag }}{{ partial "taxonomy/tags.html" . }}{{ end }}
  40. </div>
  41. </div>
  42. <a href="https://brid.gy/publish/mastodon"></a>
  43. {{ if eq .Type "article"}}
  44. {{ if .Site.DisqusShortname -}}
  45. <div id="fb_comments_container">
  46. <h2>Comments</h2>
  47. {{ template "_internal/disqus.html" . }}
  48. </div>
  49. {{- end }}
  50. {{ end }}
  51. </aside></div>
  52. </article> {{ else }}
  53. <section data-post-type="{{ .Params.posttype }}" data-post-id="{{ .Params.slug }}" class="h-entry">
  54. <div class="author" style="display:none;">
  55. <a rel="author" class="u-author h-card" rel="me" href="https://jk.nipponalba.scot">{{ .Site.Params.Title }}<img src="/images/profile.jpg"/></a>
  56. </div>
  57. <aside>
  58. <article class="u-{{ .Params.posttype }} h-cite">
  59. {{ if .Params.inreplyto }}<p> Replied to {{ end }}
  60. {{ if .Params.likeof }}<p> Liked {{ end }}
  61. {{ if .Params.repostof }}<p>Shared {{ end }}
  62. someone's
  63. {{ if .Params.likeof }}<a href="{{ .Params.likeof }}" class="link u-url"> post</a>{{ end }}
  64. {{ if .Params.inreplyto }}<a href="{{ .Params.inreplyto }}" class="link u-url"> post</a>{{ end }}
  65. {{ if .Params.repostof }}<a href="{{ .Params.repostof }}" class="link u-url"> post</a>{{ end }}</p>
  66. {{ if .Content }}<div class="e-content">{{ .Content }}</div><br/> {{end}}
  67. <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>
  68. </article>
  69. </aside>
  70. </section>
  71. {{end}}
  72. {{end}}