jon.kelbie.scot website
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.

55 lines
4.5 KiB

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
  1. {{ define "main" }}
  2. <section class="stream h-feed">
  3. <section class="author" style="display:none;">
  4. <a rel="author" class="p-author h-card" rel="me" href="https://jon.kelbie.scot">{{ .Site.Params.Author }}<img src="/images/profile1.jpg"/></a>
  5. </section>
  6. <span id="pagination-top">{{ partial "pagination.html" . }}</span>
  7. {{ range .Paginator.Pages}}
  8. {{ if not (eq .Type "response")}}<section data-post-type="{{ .Type }}" class="feed h-entry {{.Type }}">
  9. {{ with .Page.Params.Image }}<center>{{ partial "image.html" . }}</center>{{ end }}
  10. <article class="index_content">
  11. {{if eq .Type "article"}}<a href="{{ .Permalink }}" class="u-url"><h3 class="p-name entry-title">{{ .Title }}</h3></a><b>{{ .Description }}</b>{{ end }}
  12. {{ if eq .Type "article" }}<section class="info">
  13. <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/>
  14. <span class="categories_span">{{ with .Page.Params.category }}Categories: {{ partial "taxonomy/categories.html" . }}{{ end }}</span><span class="reading-time">{{ .ReadingTime }}-minute read</span><br/>
  15. <span class="tags_span">{{ with .Page.Params.tag }}Tags: {{ partial "taxonomy/tags.html" . }}{{ end }}</span>
  16. </section>{{ end }}
  17. <section class="e-content">
  18. {{ .Content }}
  19. {{ if eq .Type "photo"}}
  20. <section class="photogrid">
  21. {{$link := .Permalink}}
  22. {{$summary := .Content}}
  23. {{ range .Page.Params.Photo }}
  24. {{ if isset . "value" }}
  25. <a href="{{ $link }}" class="u-url"><img class="u-photo thumb" src="{{ replace .value "800." "300."}}" title="{{ $summary }}" alt="{{ .alt }}"/></a>
  26. {{ else }}
  27. <a href="{{ $link }}" class="u-url"><img class="u-photo thumb" src="{{ replace . "800." "300."}}" title="{{ $summary }}" alt="Alt not yet added, will fix!"/></a>
  28. {{end}}{{end}}
  29. </section>
  30. {{end}}
  31. </section><br/>
  32. {{ if not (eq .Type "article") }}<section class="info">
  33. <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/>
  34. </section>{{ end }}
  35. </article>
  36. </section>
  37. {{ else }}
  38. <section data-post-type="{{ .Params.posttype }}" data-post-id="{{ .Params.slug }}" class="h-entry" id="response">
  39. <article class="h-cite"><p class="response-top">{{ .Site.Params.Firstname }}
  40. {{ if eq .Params.posttype "in-reply-to" }} replied to <a href="{{ index .Params "in-reply-to" }}" class="u-in-reply-to">{{ index .Params "in-reply-to" }}</a>{{ end }}
  41. {{ if eq .Params.posttype "like-of" }} liked <a href="{{ index .Params "like-of" }}" class="u-like-of">{{ index .Params "like-of" }}</a>{{ end }}
  42. {{ if eq .Params.posttype "repost-of" }} shared <a href="{{ index .Params "repost-of" }}" class="u-repost-of">{{ index .Params "repost-of" }}</a>{{ end }}</p>
  43. {{ if .Content }}<section class="p-name p-content">{{ .Content }}</section>{{end}}
  44. {{ if not (eq .Type "article") }}<section class="info">
  45. <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/>
  46. </section>{{ end }}
  47. </article>
  48. </section>
  49. {{end}}
  50. {{ end }}
  51. <span id="pagination-bottom">{{ partial "pagination.html" . }}</span>
  52. </section>
  53. {{ end }}