PR#196 : Fix english typos and hide the 'tags' div when not needed

This commit is contained in:
Delaby Pierre 2019-03-16 10:55:18 +01:00
parent 5f53dfaa15
commit 6207c44b5c
3 changed files with 9 additions and 9 deletions

View file

@ -5,11 +5,11 @@ weight: 40
tags: ["documentation", "tutorial"]
---
*Learn theme* support one default taxonomy of gohugo : the *tag* feature.
*Learn theme* support one default taxonomy of gohugo: the *tag* feature.
## Configuration
Just add tags to any page :
Just add tags to any page:
```markdown
---
@ -23,7 +23,7 @@ tags: ["tutorial", "theme"]
## 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.

View file

@ -85,7 +85,7 @@
{{if and (not .IsHome) (not .Params.chapter) }}
<h1>
{{ if eq .Kind "taxonomy" }}
{{.Kind}} :
{{.Kind}} ::
{{ end }}
{{.Title}}
</h1>

View file

@ -1,7 +1,7 @@
{{ if .Params.tags }}
<div class="tags">
{{ if .Params.tags }}
{{range .Params.tags}}
<a class="tag-link" href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }} </a>
{{end}}
{{end}}
{{range .Params.tags}}
<a class="tag-link" href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a>
{{end}}
</div>
{{end}}