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
4.0 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. <div class="stream h-feed">
  3. <span id="pagination-top">{{ partial "pagination.html" . }}</span>
  4. {{ range .Paginator.Pages}}
  5. {{ if not (eq .Type "response")}}<section data-post-type="{{ .Type }}" class="feed h-entry {{.Type }}">
  6. <div class="p-author author" style="display:none;">
  7. <a rel="author" class="p-name u-url u-uid" rel="me" href="https://jk.nipponalba.scot">{{ .Site.Params.Title }}</a>
  8. <img class="u-photo" src="/images/profile.jpg"/>
  9. </div>
  10. <aside>
  11. {{if eq .Type "article" }}<br/><a href="{{ .RelPermalink }}" class="link u-url"><h3 class="">{{ .Title }}</h3></a><b>{{ .Description }}</b><br/>{{ with .Page.Params.Image }}{{ partial "taxonomy/image.html" . }}{{ end }}{{ end }}
  12. <div class="e-content">
  13. {{ .Content }}
  14. {{ if eq .Type "photo"}}
  15. <div class="photos">
  16. {{ range .Page.Params.Photo }}
  17. <a class="u-url" href="{{ . }}">
  18. <picture>
  19. <source media="max-width:960px" srcset="{{ . }}">
  20. <source media="max-width:480px" srcset="{{ replace . "800." "300."}}">
  21. <img class="u-photo thumb" src="{{ replace . "800." "300."}}" srcset="{{ . }} 960w, {{ replace . "800." "300."}} 480w"/>
  22. </picture>
  23. </a>
  24. {{end}}
  25. </div>
  26. {{end}}
  27. </div>
  28. <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>
  29. {{if eq .Type "article" }}<div class="post-footer">
  30. <div class="info">
  31. {{ with .Page.Params.Blog }}{{ partial "taxonomy/blog.html" . }}{{ end }}
  32. {{ with .Page.Params.Categories }}{{ partial "taxonomy/categories.html" . }}{{ end }}
  33. {{ with .Page.Params.Tags }}{{ partial "taxonomy/tags.html" . }}{{ end }}
  34. </div>
  35. </div>{{end}}
  36. </aside>
  37. </section><hr/>
  38. {{ else }}
  39. <section data-post-type="{{ .Params.posttype }}" data-post-id="{{ .Params.slug }}" class="response h-entry">
  40. <div class="author">
  41. <a rel="author" class="u-author h-card" rel="me" href="https://jk.nipponalba.scot"><img src="/images/profile.jpg"/><div class="title">{{ .Site.Params.Title }}</div></a>
  42. </div>
  43. <aside>
  44. <article class="u-{{ .Params.posttype }} h-cite">
  45. {{ if .Params.inreplyto }}<p> Replied to {{ end }}
  46. {{ if .Params.likeof }}<p> Liked {{ end }}
  47. {{ if .Params.repostof }}<p>Shared {{ end }}
  48. someone's
  49. {{ if .Params.likeof }}<a href="{{ .Params.likeof }}" class="link u-url"> post</a>{{ end }}
  50. {{ if .Params.inreplyto }}<a href="{{ .Params.inreplyto }}" class="link u-url"> post</a>{{ end }}
  51. {{ if .Params.repostof }}<a href="{{ .Params.repostof }}" class="link u-url"> post</a>{{ end }}</p>
  52. {{ if .Content }}<div class="e-content">{{ .Content }}</div><br/> {{end}}
  53. <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>
  54. </article>
  55. </aside>
  56. </section><hr/>
  57. {{end}}
  58. {{ end }}
  59. <span id="pagination-bottom">{{ partial "pagination.html" . }}</span>
  60. </div>
  61. {{ end }}