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.

65 lines
4.2 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. <section data-post-type="{{ .Params.posttype }}" data-post-id="{{ .Params.slug }}" class="response h-entry">
  42. <div class="author">
  43. <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>
  44. </div>
  45. <aside>
  46. <article class="u-{{ .Params.posttype }} h-cite">
  47. {{ if .Params.inreplyto }}<p> Replied to {{ end }}
  48. {{ if .Params.likeof }}<p> Liked {{ end }}
  49. {{ if .Params.repostof }}<p>Shared {{ end }}
  50. someone's
  51. {{ if .Params.likeof }}<a href="{{ .Params.likeof }}" class="link u-url"> post</a>{{ end }}
  52. {{ if .Params.inreplyto }}<a href="{{ .Params.inreplyto }}" class="link u-url"> post</a>{{ end }}
  53. {{ if .Params.repostof }}<a href="{{ .Params.repostof }}" class="link u-url"> post</a>{{ end }}</p>
  54. {{ if .Content }}<div class="e-content">{{ .Content }}</div><br/> {{end}}
  55. <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>
  56. </article>
  57. </aside>
  58. </section><hr/>
  59. {{end}}
  60. {{ end }}
  61. <span id="pagination-bottom">{{ partial "pagination.html" . }}</span>
  62. </div>
  63. {{ end }}