Skip to content

Commit

Permalink
Remove params for tags in exampleSite/config.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
dataCobra committed Dec 18, 2019
1 parent c2835ee commit 949b15a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ disqusShortname = "hugo-vitae"
# Content types to disable Disqus on.
disableDisqusTypes = ["page"]

# Name your tags
tags = "tags"

# customCSS = "css/custom.css" # Custom CSS applied to default styles.

# Nav.
Expand Down
2 changes: 1 addition & 1 deletion layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ <h1 class="title">{{ .Title }}</h1>
</div>

<div class="tags">
{{ $taxo := .Site.Params.tags }}
{{ $taxo := $.Site.Params.tags }}
{{ range .Param $taxo }}
{{ $name := . }}
{{ with $.Site.GetPage (printf "/%s/%s" $taxo ($name | urlize)) }}
Expand Down

0 comments on commit 949b15a

Please sign in to comment.