]> Untitled Git - bitcoindevkit.org/commitdiff
Show the author in the blog homepage
authorAlekos Filini <alekos.filini@gmail.com>
Thu, 19 Nov 2020 17:28:17 +0000 (18:28 +0100)
committerAlekos Filini <alekos.filini@gmail.com>
Thu, 19 Nov 2020 17:28:17 +0000 (18:28 +0100)
layouts/blog/list.html

index 669a5a2b33e7a68e9fcd760bae31426cd0230f74..98fb326413ecf8d999cfa06cd4172eb1495a1453 100644 (file)
         <h3 class="blog-post"><span class="date">{{ .Date.Format "Jan 2" }}</span> <a href="{{ .RelPermalink }}" class="permalink">{{ .Title }}</a></h3>
         {{ if isset .Params "tags" }}
        <span class="blog-post-tags">
+            {{ if isset .Params "author" }}
+                By <a href="{{ "/blog/author/" | relLangURL }}{{ .Params.author | urlize }}">{{ .Params.author }}</a> ·
+            {{ end }}
+
             {{ $list := .Params.tags }}
             {{ $len := (len $list) }}
-
            Tags: {{ range $index, $elem := $list }}
                 <a href="/blog/tags/{{ $elem | urlize }}">{{ $elem }}</a> {{ if ne (add $index 1) $len }} · {{ end }}
            {{ end }}