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.

27 lines
1.3 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
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. <section class="archive">
  3. <span 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></span>
  4. <ul class="list-with-title">
  5. {{ if eq .Type "article" "blog"}}{{ range .Data.Pages.GroupByDate "2006" }}
  6. <span class="listing-title">{{ .Key }}</span>
  7. {{ range .Pages }}
  8. <ul class="listing">
  9. <li class="listing-item">
  10. {{ if eq .Type "article" "blog"}}
  11. <span class="listing-post"><a href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</a>
  12. <time class="post-time"><span class="date">{{.Date.Format "Jan 2" }}</span></time>
  13. </span>
  14. {{end}}
  15. </li>
  16. </ul>{{ end }}{{end}}{{else}}
  17. {{ range .Pages }}
  18. <ul class="listing">
  19. <li class="listing-item">
  20. {{ if not (eq .Type "note" "photo") }}<span class="listing-post"><a href="{{ .Permalink }}" title="{{ .Title }}">{{ .Title }}</span>{{else}}
  21. <span class="listing-post"><a href="{{ .Permalink }}" title="{{ .Summary }}"><b>{{ humanize .Type }}:</b> {{ .Summary }}</span>{{end}}
  22. </li>
  23. </ul>{{ end }}
  24. {{ end }}
  25. </ul>
  26. </section>
  27. {{ end }}