mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-30 03:03:09 +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
|
@ -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.
|
||||
|
||||
|
|
|
@ -85,7 +85,7 @@
|
|||
{{if and (not .IsHome) (not .Params.chapter) }}
|
||||
<h1>
|
||||
{{ if eq .Kind "taxonomy" }}
|
||||
{{.Kind}} :
|
||||
{{.Kind}} ::
|
||||
{{ end }}
|
||||
{{.Title}}
|
||||
</h1>
|
||||
|
|
|
@ -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}}
|
Loading…
Reference in a new issue