mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 01:33:04 +00:00
PR#196 : Fix english typos and hide the 'tags' div when not needed
This commit is contained in:
parent
5f53dfaa15
commit
6207c44b5c
3 changed files with 9 additions and 9 deletions
|
@ -23,7 +23,7 @@ tags: ["tutorial", "theme"]
|
||||||
## Behavior
|
## Behavior
|
||||||
|
|
||||||
|
|
||||||
The tags are displayed at the top of the page, in the order wich they are enterted.
|
The tags are displayed at the top of the page, in their insertion order.
|
||||||
|
|
||||||
Each tag is a link to a *Taxonomy* page displaying all the articles with the given tag.
|
Each tag is a link to a *Taxonomy* page displaying all the articles with the given tag.
|
||||||
|
|
||||||
|
|
|
@ -85,7 +85,7 @@
|
||||||
{{if and (not .IsHome) (not .Params.chapter) }}
|
{{if and (not .IsHome) (not .Params.chapter) }}
|
||||||
<h1>
|
<h1>
|
||||||
{{ if eq .Kind "taxonomy" }}
|
{{ if eq .Kind "taxonomy" }}
|
||||||
{{.Kind}} :
|
{{.Kind}} ::
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{.Title}}
|
{{.Title}}
|
||||||
</h1>
|
</h1>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<div class="tags">
|
|
||||||
{{ if .Params.tags }}
|
{{ if .Params.tags }}
|
||||||
|
<div class="tags">
|
||||||
{{range .Params.tags}}
|
{{range .Params.tags}}
|
||||||
<a class="tag-link" href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
|
<a class="tag-link" href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{end}}
|
|
||||||
</div>
|
</div>
|
||||||
|
{{end}}
|
Loading…
Reference in a new issue