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.

64 lines
3.6 KiB

5 years ago
4 years ago
5 years ago
4 years ago
5 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 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
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
4 years ago
5 years ago
  1. {{ define "main" }}
  2. <section class="about h-feed">
  3. <section class="profile title h-card p-author">
  4. <section class="profile-left"><img class="u-photo" src="/images/profile.jpg" alt="profile picture"></section>
  5. <section 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. <section class="description">
  15. <p class="p-note">{{ .Site.Params.description }}</p>
  16. </section>
  17. </section>
  18. <section style="display:none">
  19. <span class="p-country-name">Scotland or Japan</span>
  20. <a class="u-email" rel="me" href="mailto:jk@nipponalba.scot"></a>
  21. <a class="u-url" rel="me" href="https://social.nipponalba.scot/jk"></a>
  22. <a class="u-url" rel="me" href="https://px.nipponalba.scot/jk"></a>
  23. <span class="p-category">Craft Beer</span>
  24. <span class="p-category">Single Malt Whisky</span>
  25. <span class="p-category">Homebrewing</span>
  26. <span class="p-category">Scottish Politics</span>
  27. <span class="p-category">Scottish History</span>
  28. <span class="p-category">Japanese History</span>
  29. <span class="p-category">Tech</span>
  30. <span class="p-category">Veganism</span>
  31. <span class="p-category">Cooking</span>
  32. </section>
  33. </section>
  34. <h1>Latest post</h1>
  35. {{ range (first 1 (where .Site.RegularPages "Type" "!=" "response")) }}
  36. <article class="post h-entry entry">
  37. {{ if eq .Type "article"}}{{ with .Page.Params.Image }}{{ partial "taxonomy/image.html" . }}{{ end }}<h3 class="p-name entry-title"><a href="{{ .Permalink}}" class="u-url">{{ .Title }}</a></h3>{{ end }}
  38. <section class="e-content">{{ .Content }}
  39. {{ if eq .Type "photo"}}
  40. <section class="photos">
  41. {{ range .Page.Params.Photo }}
  42. {{ if isset . "value" }}
  43. <a class="u-url" href="{{ . }}"><img class="u-photo thumb" src="{{ replace .value "800." "300."}}" alt="{{ .alt }}"/></a>
  44. {{ else }}
  45. <a class="u-url" href="{{ . }}"><img class="u-photo thumb" src="{{ replace . "800." "300."}}" alt="Alt not yet added, will fix!"/></a>
  46. {{ end }}
  47. {{end}}
  48. </section>
  49. {{end}}
  50. </section>
  51. <section class="info">
  52. {{ if eq .Type "article" }}
  53. <span class="blogs_span">{{ with .Page.Params.Blog }}Blog: {{ partial "taxonomy/blog.html" . }}{{ end }}</span><span class="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/>
  54. <span class="categories_span">{{ with .Page.Params.category }}Categories: {{ partial "taxonomy/categories.html" . }}{{ end }}</span><span class="reading-time">{{ .ReadingTime }}-minute read</span><br/>
  55. <span class="tags_span">{{ with .Page.Params.tag }}Tags: {{ partial "taxonomy/tags.html" . }}{{ end }}</span>
  56. {{ else }}
  57. <span class="categories_span">{{ with .Page.Params.category }}Categories: {{ partial "taxonomy/categories.html" . }}{{ end }}</span><span class="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/>
  58. {{ end }}
  59. </section>
  60. <a href="https://brid.gy/publish/mastodon"></a>
  61. </article>
  62. {{ end }}
  63. </section>
  64. {{ end }}