source for sakino.kelbie.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.

51 lines
3.0 KiB

  1. {{ define "main" }}
  2. <section class="about">
  3. <section class="h-feed">
  4. <section class="latest_note"><h2>Latest note</h2>
  5. {{ range (first 1 (where .Site.RegularPages "Type" "=" "note")) }}
  6. <article class="index-note h-entry entry">
  7. <section class="author" style="display:none;">
  8. <a rel="author" class="p-author h-card" rel="me" href="https://jon.kelbie.scot">{{ .Site.Params.Author }}<img src="/images/profile1.jpg"/></a>
  9. </section>
  10. <section class="e-content">{{ .Content }}
  11. </section>
  12. <section class="info">
  13. {{ if eq .Type "article" }}
  14. <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/>
  15. <span class="categories_span">{{ with .Page.Params.category }}Categories: {{ partial "taxonomy/categories.html" . }}{{ end }}</span><span class="reading-time">{{ .ReadingTime }}-minute read</span><br/>
  16. <span class="tags_span">{{ with .Page.Params.tag }}Tags: {{ partial "taxonomy/tags.html" . }}{{ end }}</span>
  17. {{ else }}
  18. <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/>
  19. {{ end }}
  20. </section>
  21. </article> {{ end }}
  22. </section>
  23. <section class="latest_articles"><h2>Latest articles</h2>
  24. {{ range (first 3 (where .Site.RegularPages "Type" "=" "article")) }}
  25. <article class="index-article h-entry entry"><a class="u-url" href="{{ .Permalink }}" title="{{ .Title }}">
  26. {{ range first 1 .Page.Params.image }} <img class="banner" src="{{ replace . "images" "images/300" }}"/>{{ end }}<span class="p-name entry-title">{{ .Title }}</span>
  27. <section class="e-content">{{ .Description }}</section>
  28. </a></article>{{ end }}</section>
  29. <section class="latest_photos"><h2>Latest photos</h2>
  30. {{ range (first 3 (where .Site.RegularPages "Type" "=" "photo")) }}
  31. <article class="index-photo h-entry entry"><a class="u-url" href="{{ .Permalink }}">
  32. <section class="e-content">
  33. {{ if eq .Type "photo"}}
  34. <section class="photos">
  35. {{ $summary := .Content }}
  36. {{ range first 1 .Page.Params.Photo }}
  37. {{ if isset . "value" }}
  38. <img class="u-photo thumb" src="{{ replace .value "800." "300."}}" title="{{$summary}}" alt="{{ .alt }}"/>
  39. {{ else }}
  40. <img class="u-photo thumb" src="{{ replace . "800." "300."}}" title="{{$summary}}" alt="Alt not yet added, will fix!"/>
  41. {{ end }}
  42. {{end}}
  43. </section>
  44. {{end}}
  45. </section>
  46. </a></article>{{ end }}</section>
  47. <a href="https://brid.gy/publish/mastodon"></a>
  48. </section>
  49. </section>
  50. {{ end }}