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.

67 lines
5.1 KiB

5 years ago
5 years ago
5 years ago
5 years ago
4 years ago
4 years ago
5 years ago
4 years ago
4 years ago
4 years ago
4 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 class="index_content">
  13. {{if eq .Type "article" }}<br/>{{ with .Page.Params.Image }}{{ partial "taxonomy/image.html" . }}{{ end }}<a href="{{ .Permalink }}" class="u-url"><h3 class="p-name entry-title">{{ .Title }}</h3></a><b>{{ .Description }}</b>{{ end }}
  14. {{ if eq .Type "article" }}<div class="info">
  15. {{ with .Page.Params.Blog }}Blog: {{ partial "taxonomy/blog.html" . }}{{ end }}<span id="info-date"><a href="{{ .Permalink }}" class="u-url"><time class="dt-published" datetime="{{ .Date.Format "2 Jan 2006 15:04 GMT" }}">{{ .Date.Format "02/01/2006 15:04 GMT" }}</time></a></span><br/>
  16. {{ with .Page.Params.category }}Categories: {{ partial "taxonomy/categories.html" . }}{{ end }}<span class="reading-time">{{ .ReadingTime }}-minute read</span><br/>
  17. {{ with .Page.Params.tag }}Tags: {{ partial "taxonomy/tags.html" . }}{{ end }}
  18. </div>{{ end }}
  19. <div class="e-content">
  20. {{ .Content }}
  21. {{ if eq .Type "photo"}}
  22. <div class="photogrid">
  23. {{ range .Page.Params.Photo }}
  24. <a class="u-url" href="{{ . }}">
  25. <picture>
  26. <source media="max-width:960px" srcset="{{ . }}">
  27. <source media="max-width:480px" srcset="{{ replace . "800." "300."}}">
  28. <img class="u-photo thumb" src="{{ replace . "800." "300."}}" srcset="{{ . }} 960w, {{ replace . "800." "300."}} 480w"/>
  29. </picture>
  30. </a>
  31. {{end}}
  32. </div>
  33. {{end}}
  34. </div>
  35. {{ if not (eq .Type "article") }}<div class="info">
  36. {{ with .Page.Params.category }}Categories: {{ partial "taxonomy/categories.html" . }}{{ end }}<div id="info-date"><a href="{{ .Permalink }}" class="u-url"><time class="dt-published" datetime="{{ .Date.Format "2 Jan 2006 15:04 GMT" }}">{{ .Date.Format "02/01/2006 15:04 GMT" }}</time></a></div><br/>
  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="h-entry" id="response">{{ end }}
  42. {{ if .Params.likeof }}<section data-post-type="like-of" data-post-id="{{ .Params.slug }}" class="h-entry" id="response">{{ end }}
  43. {{ if .Params.repostof }}<section data-post-type="repost-of" data-post-id="{{ .Params.slug }}" class="h-entry" id="response">{{ end }}
  44. <div class="author" style="display:none;">
  45. <a rel="author" class="p-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><article class="h-cite"><p>{{ .Site.Params.Title }}
  48. {{ if .Params.inreplyto }} replied to a{{ end }}
  49. {{ if .Params.likeof }} liked a{{ end }}
  50. {{ if .Params.repostof }} shared a{{ end }}
  51. {{ if .Params.likeof }}<a href="{{ .Params.likeof }}" class="u-like-of"> post</a>{{ end }}
  52. {{ if .Params.inreplyto }}<a href="{{ .Params.inreplyto }}" class="u-in-reply-to"> post</a>{{ end }}
  53. {{ if .Params.repostof }}<a href="{{ .Params.repostof }}" class="u-repost-of"> post</a>{{ end }}</p>
  54. {{ if .Content }}<div class="p-name p-content">{{ .Content }}</div>{{end}}
  55. {{ if not (eq .Type "article") }}<div class="info">
  56. {{ with .Page.Params.category }}Categories: {{ partial "taxonomy/categories.html" . }}{{ end }}<span id="info-date"><a href="{{ .Permalink }}" class="u-url"><time class="dt-published" datetime="{{ .Date.Format "2 Jan 2006 15:04 GMT" }}">{{ .Date.Format "02/01/2006 15:04 GMT" }}</time></a></span><br/>
  57. </div>{{ end }}
  58. </article>
  59. </aside>
  60. </section><hr/>
  61. {{end}}
  62. {{ end }}
  63. <span id="pagination-bottom">{{ partial "pagination.html" . }}</span>
  64. </div>
  65. {{ end }}