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.

52 lines
2.6 KiB

5 years ago
5 years ago
4 years ago
5 years ago
4 years ago
4 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. {{ with .Page.Params.Image }}{{ partial "taxonomy/image.html" . }}{{ end }}<h3 class="p-name entry-title">{{ .Title }}</h3>
  27. <aside>
  28. <div class="e-content">{{ .Content }}
  29. {{ if eq .Type "photo"}}
  30. <div class="photos">
  31. {{ range .Page.Params.Photo }}
  32. <a class="u-url" href="{{ . }}"><img class="u-photo thumb" src="{{ replace . "800." "300."}}"/></a>
  33. {{end}}
  34. </div>
  35. {{end}}
  36. </div>
  37. <div class="info">
  38. {{ if eq .Type "article" }}
  39. {{ with .Page.Params.Blog }}Blog: {{ partial "taxonomy/blog.html" . }}{{ end }}<span id="info-date"><time class="dt-published" datetime="{{ .Date.Format "2 Jan 2006 15:04 GMT" }}">{{ .Date.Format "02/01/2006 15:04 GMT" }}</time></span><br/>
  40. {{ with .Page.Params.category }}Categories: {{ partial "taxonomy/categories.html" . }}{{ end }}<span class="reading-time">{{ .ReadingTime }}-minute read</span><br/>
  41. {{ with .Page.Params.tag }}Tags: {{ partial "taxonomy/tags.html" . }}{{ end }}
  42. {{ else }}
  43. {{ with .Page.Params.category }}Categories: {{ partial "taxonomy/categories.html" . }}{{ end }}<span id="info-date"><a href="{{ .Permalink }}" class="u-url"><time class="dt-published" datetime="{{ .Date.Format "2 Jan 2006 15:04 GMT" }}">{{ .Date.Format "02/01/2006 15:04 GMT" }}</time></a></span><br/>
  44. {{ end }}
  45. </div>
  46. </aside>
  47. </div>
  48. <a href="https://brid.gy/publish/mastodon"></a>
  49. </article>
  50. {{ end }}
  51. </div>
  52. {{ end }}