Merge pull request #177 from MarekPikula/optional-new-tab-for-tags
Make opening tag link in a new tab optional
This commit is contained in:
@@ -380,12 +380,14 @@ params:
|
|||||||
|
|
||||||
# Single pages like blog and post
|
# Single pages like blog and post
|
||||||
singlePages:
|
singlePages:
|
||||||
|
socialShare: true
|
||||||
readTime:
|
readTime:
|
||||||
enable: true
|
enable: true
|
||||||
content: "min read"
|
content: "min read"
|
||||||
scrollprogress:
|
scrollprogress:
|
||||||
enable: true
|
enable: true
|
||||||
socialShare: true
|
tags:
|
||||||
|
openInNewTab: true
|
||||||
|
|
||||||
# For translations
|
# For translations
|
||||||
terms:
|
terms:
|
||||||
|
|||||||
@@ -60,7 +60,9 @@
|
|||||||
<h5>{{ .Site.Params.terms.tags | default "Tags" }}</h5>
|
<h5>{{ .Site.Params.terms.tags | default "Tags" }}</h5>
|
||||||
<ul class="tags-ul list-unstyled list-inline">
|
<ul class="tags-ul list-unstyled list-inline">
|
||||||
{{range .Params.tags}}
|
{{range .Params.tags}}
|
||||||
<li class="list-inline-item"><a href="{{`tags` | absURL}}/{{.| urlize}}" target="_blank">{{.}}</a></li>
|
<li class="list-inline-item"><a href="{{`tags` | absURL}}/{{.| urlize}}"
|
||||||
|
{{ if site.Params.singlePages.tags.openInNewTab | default true }}target="_blank"{{ end }}
|
||||||
|
>{{.}}</a></li>
|
||||||
{{end}}
|
{{end}}
|
||||||
</ul>
|
</ul>
|
||||||
</aside>
|
</aside>
|
||||||
|
|||||||
Reference in New Issue
Block a user