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.

62 lines
3.6 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. {{ define "main" }}
  2. <main>
  3. <div class="contents">
  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." "200."}}"/></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/>{{end}}
  33. {{ if eq .Type "response"}}
  34. {{range .Site.Data.response}}
  35. {{range .entries}}
  36. <section data-post-type="{{ .posttype }}" data-post-id="{{ .slug }}"class="h-entry">
  37. <div class="author" style="display:none;">
  38. <a rel="author" class="u-author h-card" rel="me" href="https://jk.nipponalba.scot">{{ .Site.Params.Title }}<img src="/images/profile.jpg"/></a>
  39. </div>
  40. <aside>
  41. <article class="u-{{ .posttype }} h-cite">
  42. {{ if .likeof }}<p> Liked {{ end }}
  43. {{ if .inreplyto }}<p> Replied to {{ end }}
  44. {{ if .repostof }}<p>Shared {{ end }}
  45. someone's
  46. {{ if .likeof }}<a href="{{ .likeof }}" class="link u-url"> post</a>{{ end }}
  47. {{ if .inreplyto }}<a href="{{ .inreplyto }}" class="link u-url"> post</a>{{ end }}
  48. {{ if .repostof }}<a href="{{ .repostof }}" class="link u-url"> post</a>{{ end }}</p>
  49. <div class="e-content">{{ .content }}</div><br/>
  50. <time class="dt-published" datetime="{{ dateFormat "02/01/2006 15:04 GMT" .date }}">{{ dateFormat "02/01/2006 15:04 GMT" .date }}</time>
  51. </article>
  52. </aside>
  53. </section><hr/>
  54. {{end}}
  55. {{end}}
  56. {{end}}
  57. {{ end }}
  58. <span id="pagination-bottom">{{ partial "pagination.html" . }}</span>
  59. </div>
  60. </main>
  61. {{ end }}