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.

62 lines
3.1 KiB

5 years ago
5 years ago
4 years ago
5 years ago
4 years ago
5 years ago
5 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="index_info">
  29. {{ if eq .Type "article" }}
  30. {{ 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/>
  31. {{ with .Page.Params.category }}Categories: {{ partial "taxonomy/categories.html" . }}{{ end }}<span class="reading-time">{{ .ReadingTime }}-minute read</span><br/>
  32. {{ with .Page.Params.tag }}Tags: {{ partial "taxonomy/tags.html" . }}{{ end }}
  33. {{ else }}
  34. <span id="index-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/>{{ with .Page.Params.category }}Categories: {{ partial "taxonomy/categories.html" . }}{{ end }}
  35. {{ end }}
  36. </div>
  37. <div class="e-content">{{ .Content }}
  38. {{ if eq .Type "photo"}}
  39. <div class="photos">
  40. {{ range .Page.Params.Photo }}
  41. <a class="u-url" href="{{ . }}"><img class="u-photo thumb" src="{{ replace . "800." "300."}}"/></a>
  42. {{end}}
  43. </div>
  44. {{end}}
  45. </div>
  46. <div class="index-post-footer">
  47. <div class="info">
  48. {{ with .Page.Params.Blog }}{{ partial "taxonomy/blog.html" . }}{{ end }}
  49. {{ with .Page.Params.category }}{{ partial "taxonomy/categories.html" . }}{{ end }}
  50. {{ with .Page.Params.tag }}{{ partial "taxonomy/tags.html" . }}{{ end }}
  51. </div>
  52. </div>
  53. </aside>
  54. </div>
  55. <a href="https://brid.gy/publish/mastodon"></a>
  56. </article>
  57. {{ end }}
  58. </div>
  59. {{ end }}