Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/siegerts/hugo-theme-basic.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/single.html')
-rw-r--r--layouts/_default/single.html37
1 files changed, 33 insertions, 4 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 2c5911a..eb34eb1 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -14,15 +14,44 @@
<section id="main" class="mt5">
<h1 itemprop="name" id="title">{{ .Title }}</h1>
<span class="f6 gray">{{ .Date.Format "January 2, 2006" }}</span>
-
+
<article itemprop="articleBody" id="content" class="w-90 lh-copy">
{{ .Content }}
</article>
- <span class="f6 gray mt3" title="Lastmod: {{ .Lastmod.Format "January 2, 2006" }}. Published at: {{ .PublishDate.Format "2006-01-02" }}.">
- {{ if ne .Lastmod .PublishDate }}
- Modified : {{ dateFormat "January 2, 2006" .Lastmod }}
+ {{ if and (.Site.Taxonomies.series) (isset .Params "series") }}
+ <section class="mt4">
+ {{ $readMore := ":wave:" }}
+ {{ $series := .Params.series | urlize}}
+ <h3>{{ $readMore | emojify }} Related posts in the <a href="/series/{{ $series }}" class="b bb bw1 pb1 no-underline black">{{ .Params.Series }}</a> series...</h3>
+
+ {{ $posts := index .Site.Taxonomies.series $series }}
+
+ {{ if (gt ($posts | len) 1)}}
+ <ul class="list pl0">
+ {{ range where $posts "Title" "!=" .Title }}
+ <li class="list pl0 lh-copy">
+ <a
+ class="f4 b dib black no-underline"
+ href="{{ .Permalink}}"
+ >{{ .Title }}</a
+ >
+ <span class="f6 gray">{{ .Date.Format "January 2, 2006" }}</span>
+ </li>
+ {{ end }}
+ </ul>
+ {{ else }}
+ <div class="ph2 i">
+ No follow up posts yet. Check back soon!
+ </div>
{{ end }}
+ </section>
+ {{ end }}
+
+ <span class="f6 gray mt3" title="Lastmod: {{ .Lastmod.Format "January 2, 2006" }}. Published at: {{ .PublishDate.Format "2006-01-02" }}.">
+ {{ if ne .Lastmod .PublishDate }}
+ Modified : {{ dateFormat "January 2, 2006" .Lastmod }}
+ {{ end }}
</span>
</section>