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
|
||||
singlePages:
|
||||
socialShare: true
|
||||
readTime:
|
||||
enable: true
|
||||
content: "min read"
|
||||
scrollprogress:
|
||||
enable: true
|
||||
socialShare: true
|
||||
tags:
|
||||
openInNewTab: true
|
||||
|
||||
# For translations
|
||||
terms:
|
||||
|
||||
@@ -60,7 +60,9 @@
|
||||
<h5>{{ .Site.Params.terms.tags | default "Tags" }}</h5>
|
||||
<ul class="tags-ul list-unstyled list-inline">
|
||||
{{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}}
|
||||
</ul>
|
||||
</aside>
|
||||
|
||||
Reference in New Issue
Block a user