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.

59 lines
2.5 KiB

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