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.

26 lines
1.3 KiB

5 years ago
5 years ago
5 years ago
  1. {{ define "main" }}
  2. <div class="archive">
  3. <div class="list-title">{{if not (eq .Name "Blog")}}{{ .Name }}{{ end }}{{if eq .Name "Blog"}}All Blogs{{ end }} <a href="{{ .Permalink }}/index.xml"><i class="fa fa-rss fa-2x fa-fw" aria-hidden="true" title="{{ .Name }} RSS feed"></i></a></div>
  4. <ul class="list-with-title">
  5. {{ if eq .Type "article" "blog"}}{{ range .Data.Pages.GroupByDate "2006" }}
  6. <div class="listing-title">{{ .Key }}</div>
  7. {{ range .Pages }}
  8. <ul class="listing">
  9. <div class="listing-item">
  10. {{ if eq .Type "article" "blog"}}
  11. <div class="listing-post"><a href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</a>
  12. <div class="post-time"><span class="date">{{.Date.Format "Jan 2" }}</span></div>
  13. </div>
  14. {{end}}
  15. </div>
  16. </ul>{{ end }}{{end}}{{else}}
  17. {{ range .Pages }}
  18. <ul class="listing">
  19. <div class="listing-item">
  20. {{ if not (eq .Type "note" "photo") }}<div class="listing-post"><a href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</div>{{else}}
  21. <div class="listing-post"><a href="{{ .Permalink }}" title="{{ .Summary }}"><b>{{ humanize .Type }}:</b> {{ .Summary }}</div>{{end}}
  22. </div>
  23. </ul>{{ end }}
  24. {{ end }}</ul>
  25. </div>
  26. {{ end }}