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:
Guru Sabarish
2024-06-15 20:05:26 +05:30
committed by GitHub
2 changed files with 6 additions and 2 deletions
+3 -1
View File
@@ -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:
+3 -1
View File
@@ -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>