mirror of
https://git.adityakumar.xyz/hugo-theme-introduction.git
synced 2024-11-21 19:42:52 +00:00
Merge branch 'thegreatluke-fix-236'
This commit is contained in:
commit
d81ebc6c8e
3 changed files with 14 additions and 9 deletions
|
@ -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"
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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 }}
|
||||||
|
|
Loading…
Reference in a new issue