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.

66 lines
4.5 KiB

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