Merge branch 'thegreatluke-fix-236'

This commit is contained in:
Victoria Drake 2020-10-11 19:48:17 -04:00
commit d81ebc6c8e
3 changed files with 14 additions and 9 deletions

View file

@ -74,6 +74,7 @@ DefaultContentLanguage = "en" # Default language fo
# You can add more by yourself # You can add more by yourself
[taxonomies] [taxonomies]
tag = "tags" tag = "tags"
series = "series"
[markup] [markup]
defaultMarkdownHandler = "goldmark" defaultMarkdownHandler = "goldmark"

View file

@ -2,6 +2,7 @@
title: "Theme Features" title: "Theme Features"
date: 2020-07-25T02:04:06-05:00 date: 2020-07-25T02:04:06-05:00
tags: ["code"] tags: ["code"]
series: ["quickstart"]
--- ---
Here are some helpful tips for setting up this theme. Here are some helpful tips for setting up this theme.

View file

@ -42,14 +42,17 @@
{{ end }} {{ end }}
</div> </div>
{{ end }} {{ end }}
{{ if .Params.tags }} {{ range $taxonomy_term, $taxonomy := .Params }}
{{ $len := (len .Params.tags) }} {{ with $.Site.GetPage $taxonomy_term }}
<p> {{ $len := (len $taxonomy) }}
Tag{{ if gt $len 1 }}s{{ end }}: <p>
{{ range $index, $tag := .Params.tags }} {{ $taxonomy_term | title }}:
<a href="{{ "tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>{{ if ne (add $index 1) $len }},{{ end }} {{ range $key, $value := $taxonomy }}
{{ end }} <a href="{{ (printf "/%s/" $taxonomy_term) | relLangURL }}{{ . | urlize }}">
</p> {{ $value }}</a>{{ if ne (add $key 1) $len }},{{ end }}
{{ end }}
</p>
{{ end }}
{{ end }} {{ end }}
</div> </div>
<!-- Begin blog post content --> <!-- Begin blog post content -->
@ -58,4 +61,4 @@
</div> </div>
<!-- End blog post content --> <!-- End blog post content -->
{{ partial "comments.html" . }} {{ partial "comments.html" . }}
{{ end }} {{ end }}