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.

41 lines
1.8 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
  1. {{ define "main" }}
  2. <div class="about h-feed">
  3. <h1>Latest post</h1>
  4. {{ range (first 1 (where .Site.RegularPages "Type" "!=" "response")) }}
  5. <article class="post h-entry entry contents">
  6. <div class="{{.Type}}" data-post-type="{{.Type }}">
  7. <div class="author" style="display:none;">
  8. <a rel="author" class="u-author h-card" rel="me" href="https://jk.nipponalba.scot">{{ .Site.Params.Title }}<img src="/images/profile.jpg"/></a>
  9. </div>
  10. <div class="post-content">{{ with .Page.Params.Image }}{{ partial "taxonomy/image.html" . }}{{ end }}<h3 class="post-title p-name entry-title">{{ .Title }}</h3>
  11. <aside>
  12. <div class="index_info">
  13. <i class="fa fa-sun"></i><a class="u-url" href="{{ .RelPermalink }}"><span class="date"><time class="dt-published" datetime="{{ .Date.Format "2 Jan 2006 15:04 GMT" }}">{{ .Date.Format "Mon, Jan 2, 2006" }}</time></span></a>
  14. <i class="fa fa-clock"></i><span class="reading-time">{{ .ReadingTime }}-minute read</span>
  15. </div>
  16. <div class="e-content">{{ .Content }}
  17. {{ if eq .Type "photo"}}
  18. <div class="photos">
  19. {{ range .Page.Params.Photo }}
  20. <a class="u-url" href="{{ . }}"><img class="u-photo thumb" src="{{ replace . "800." "300."}}"/></a>
  21. {{end}}
  22. </div>
  23. {{end}}
  24. </div>
  25. <div class="index-post-footer">
  26. <div class="info">
  27. {{ with .Page.Params.Blog }}{{ partial "taxonomy/blog.html" . }}{{ end }}
  28. {{ with .Page.Params.Categories }}{{ partial "taxonomy/categories.html" . }}{{ end }}
  29. {{ with .Page.Params.Tags }}{{ partial "taxonomy/tags.html" . }}{{ end }}
  30. </div>
  31. </div>
  32. </aside></div>
  33. </div>
  34. <a href="https://brid.gy/publish/mastodon"></a>
  35. </article>
  36. {{ end }}
  37. </div>
  38. {{ end }}