diff options
author | Matthew Lemon <matt@matthewlemon.com> | 2022-07-26 07:34:30 +0100 |
---|---|---|
committer | Matthew Lemon <matt@matthewlemon.com> | 2022-07-26 07:34:30 +0100 |
commit | f0bc6c93bda866045f8dfa4d7791c6e573b2ddf6 (patch) | |
tree | b0b43f32f3e674e755e0baf7870290d6c1cdd071 /themes/problematic | |
parent | 2d368d7b3a87ae8907317dcf3dfc6d2c7abbceeb (diff) |
added list of tags to bottom of post
Diffstat (limited to 'themes/problematic')
-rw-r--r-- | themes/problematic/layouts/_default/single.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/themes/problematic/layouts/_default/single.html b/themes/problematic/layouts/_default/single.html index 8da12c7..57895ef 100644 --- a/themes/problematic/layouts/_default/single.html +++ b/themes/problematic/layouts/_default/single.html @@ -8,5 +8,20 @@ <h2 class="title">{{ .Title }}</h2> {{ .Date.Format "Monday, 2 January 2006" }} + {{ .Content }} + + {{ if .Params.tags }} + <div style="background-color: rgb(240, 240, 240);"> + This post is tagged with: + {{ range .Params.tags }} + <a href="{{ "tags" | absURL }}/{{ . | urlize }}">{{ . }}</a> + {{ end }} + {{ else }} + <div style="background-color: rgb(240, 240, 240); margin-top: 20px;"> + This post is untagged. + </div> + {{ end }} + </div> + {{ end }} |