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.

37 lines
2.0 KiB

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. <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/>
  33. {{ end }}
  34. <span id="pagination-bottom">{{ partial "pagination.html" . }}</span>
  35. </div>
  36. </main>
  37. {{ end }}