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.

57 lines
2.5 KiB

5 years ago
5 years ago
5 years ago
  1. {{ define "main" }}
  2. <div class="about h-feed">
  3. <div class="profile title h-card p-author">
  4. <div class="profile-left"><img class="u-photo" src="/images/profile.jpg" alt="profile picture"></div>
  5. <div class="profile-right">
  6. <a rel="author" class="title p-name u-url u-uid" rel="me" href="https://jk.nipponalba.scot">{{ .Site.Params.Title }}</a><br/>
  7. <ul class="social-links">
  8. {{ range $item := .Site.Params.socialIcons }}
  9. <a href="{{ $item.url | safeURL }}" rel="me" >
  10. <i class="fa {{ $item.icon }}" aria-hidden="true" title="{{ $item.title }}"></i>
  11. </a>
  12. {{ end }}
  13. </ul>
  14. <div class="description">
  15. <p class="p-note">{{ .Site.Params.description }}</p>
  16. </div>
  17. </div>
  18. </div>
  19. <h1>Latest post</h1>
  20. {{ range (first 1 (where .Site.RegularPages "Type" "!=" "response")) }}
  21. <article class="post h-entry entry">
  22. <div class="{{.Type}}" data-post-type="{{.Type }}">
  23. <div class="author" style="display:none;">
  24. <a rel="author" class="u-author h-card" rel="me" href="https://jk.nipponalba.scot">{{ .Site.Params.Title }}<img src="/images/profile.jpg"/></a>
  25. </div>
  26. <div class="post-content">{{ with .Page.Params.Image }}{{ partial "taxonomy/image.html" . }}{{ end }}<h3 class="post-title p-name entry-title">{{ .Title }}</h3>
  27. <aside>
  28. <div class="index_info">
  29. <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>
  30. <i class="fa fa-clock"></i><span class="reading-time">{{ .ReadingTime }}-minute read</span>
  31. </div>
  32. <div class="e-content">{{ .Content }}
  33. {{ if eq .Type "photo"}}
  34. <div class="photos">
  35. {{ range .Page.Params.Photo }}
  36. <a class="u-url" href="{{ . }}"><img class="u-photo thumb" src="{{ replace . "800." "300."}}"/></a>
  37. {{end}}
  38. </div>
  39. {{end}}
  40. </div>
  41. <div class="index-post-footer">
  42. <div class="info">
  43. {{ with .Page.Params.Blog }}{{ partial "taxonomy/blog.html" . }}{{ end }}
  44. {{ with .Page.Params.category }}{{ partial "taxonomy/categories.html" . }}{{ end }}
  45. {{ with .Page.Params.tag }}{{ partial "taxonomy/tags.html" . }}{{ end }}
  46. </div>
  47. </div>
  48. </aside></div>
  49. </div>
  50. <a href="https://brid.gy/publish/mastodon"></a>
  51. </article>
  52. {{ end }}
  53. </div>
  54. {{ end }}