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.

83 lines
4.3 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><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 $pathJSON }}
  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. <div class="webmention-form">
  44. <form action="https://webmention.io/deluvi.com/webmention" method="post">
  45. <label>Did you mention this article on your website? Put the URL of your post here:</label><br/>
  46. <input name="source" type="url"/>
  47. <input name="target" value="{{ .Permalink }}" type="hidden"/>
  48. <input value="Send Webmention" type="submit"/>
  49. </form>
  50. </div>
  51. {{ $pathJSON := (print "data" (strings.TrimSuffix "/" .Permalink) ".json") }}
  52. {{ if fileExists $pathJSON }}
  53. <div class="webmentions">
  54. {{ $mJSON := getJSON $pathJSON }}
  55. {{ partial "webmention.html" $mJSON }}
  56. </div>
  57. {{ end }}
  58. </aside></div>
  59. </article> {{ else }}
  60. <section data-post-type="{{ .Params.posttype }}" data-post-id="{{ .Params.slug }}" class="h-entry">
  61. <div class="author" style="display:none;">
  62. <a rel="author" class="u-author h-card" rel="me" href="https://jk.nipponalba.scot">{{ .Site.Params.Title }}<img src="/images/profile.jpg"/></a>
  63. </div>
  64. <aside>
  65. <article class="u-{{ .Params.posttype }} h-cite">
  66. {{ if .Params.inreplyto }}<p> Replied to {{ end }}
  67. {{ if .Params.likeof }}<p> Liked {{ end }}
  68. {{ if .Params.repostof }}<p>Shared {{ end }}
  69. someone's
  70. {{ if .Params.likeof }}<a href="{{ .Params.likeof }}" class="link u-url"> post</a>{{ end }}
  71. {{ if .Params.inreplyto }}<a href="{{ .Params.inreplyto }}" class="link u-url"> post</a>{{ end }}
  72. {{ if .Params.repostof }}<a href="{{ .Params.repostof }}" class="link u-url"> post</a>{{ end }}</p>
  73. {{ if .Content }}<div class="e-content">{{ .Content }}</div><br/> {{end}}
  74. <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>
  75. </article>
  76. </aside>
  77. </section>
  78. {{end}}
  79. {{end}}