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.

58 lines
3.6 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. {{ define "main" }}
  2. <main>
  3. <div class="contents h-feed">
  4. <span id="pagination-top">{{ partial "pagination.html" . }}</span>
  5. {{ range .Paginator.Pages}}
  6. {{ if not (eq .Type "response")}}<section data-post-type="{{ .Type }}" class="h-entry {{.Type }}">
  7. <div class="p-author author" style="display:none;">
  8. <a rel="author" class="p-name u-url u-uid" rel="me" href="https://jk.nipponalba.scot">{{ .Site.Params.Title }}</a>
  9. <img class="u-photo" src="/images/profile.jpg"/>
  10. </div>
  11. <aside>
  12. {{if eq .Type "article" }}<a href="{{ .RelPermalink }}" class="link u-url"><h3 class="">{{ .Title }}</h3></a><b>{{ .Description }}</b>{{ end }}
  13. <div class="e-content">
  14. {{ .Content }}
  15. {{ if eq .Type "photo"}}
  16. <div class="photos">
  17. {{ range .Page.Params.Photo }}
  18. <a class="u-url" href="{{ . }}"><img class="u-photo thumb" src="{{ replace . "800." "300."}}"/></a>
  19. {{end}}
  20. </div>
  21. {{end}}
  22. </div>
  23. <a href="{{ .RelPermalink }}" class="link u-url time"><time class="dt-published" datetime="{{ .Date.Format "2 Jan 2006 15:04 GMT" }}">{{ .Date.Format "02/01/2006 15:04 GMT" }}</time></a>
  24. {{if eq .Type "article" }}<div class="post-footer">
  25. <div class="info">
  26. {{ with .Page.Params.Blog }}{{ partial "taxonomy/blog.html" . }}{{ end }}
  27. {{ with .Page.Params.Categories }}{{ partial "taxonomy/categories.html" . }}{{ end }}
  28. {{ with .Page.Params.Tags }}{{ partial "taxonomy/tags.html" . }}{{ end }}
  29. </div>
  30. </div>{{end}}
  31. </aside>
  32. </section><hr/>
  33. {{ else }}
  34. <section data-post-type="{{ .Params.posttype }}" data-post-id="{{ .Params.slug }}" class="h-entry">
  35. <div class="author" style="display:none;">
  36. <a rel="author" class="u-author h-card" rel="me" href="https://jk.nipponalba.scot">{{ .Site.Params.Title }}<img src="/images/profile.jpg"/></a>
  37. </div>
  38. <aside>
  39. <article class="u-{{ .Params.posttype }} h-cite">
  40. {{ if .Params.inreplyto }}<p> Replied to {{ end }}
  41. {{ if .Params.likeof }}<p> Liked {{ end }}
  42. {{ if .Params.repostof }}<p>Shared {{ end }}
  43. someone's
  44. {{ if .Params.likeof }}<a href="{{ .Params.likeof }}" class="link u-url"> post</a>{{ end }}
  45. {{ if .Params.inreplyto }}<a href="{{ .Params.inreplyto }}" class="link u-url"> post</a>{{ end }}
  46. {{ if .Params.repostof }}<a href="{{ .Params.repostof }}" class="link u-url"> post</a>{{ end }}</p>
  47. {{ if .Content }}<div class="e-content">{{ .Content }}</div><br/> {{end}}
  48. <a href="{{ .RelPermalink }}" class="link u-url time"><time class="dt-published" datetime="{{ .Date.Format "2 Jan 2006 15:04 GMT" }}">{{ .Date.Format "02/01/2006 15:04 GMT" }}</time></a>
  49. </article>
  50. </aside>
  51. </section><hr/>
  52. {{end}}
  53. {{ end }}
  54. <span id="pagination-bottom">{{ partial "pagination.html" . }}</span>
  55. </div>
  56. </main>
  57. {{ end }}