summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Braz <alanbraz@br.ibm.com>2022-09-01 16:14:43 -0300
committerFelix Börner <github@felix-boerner.de>2022-09-22 20:23:23 +0200
commitf6f753813a39a1bab0ae75894e609538a6610943 (patch)
tree7fa33c33baef999c9f6ec6d2e285cf27b432b79b
parent84dc86929b332b4e0fdde8651d8fb9ed50e35a42 (diff)
new_tab default to false
-rw-r--r--README.md4
-rw-r--r--exampleSite/config.toml4
-rw-r--r--layouts/partials/links.html2
3 files changed, 5 insertions, 5 deletions
diff --git a/README.md b/README.md
index 964de64..7f20ceb 100644
--- a/README.md
+++ b/README.md
@@ -144,12 +144,12 @@ This is what generates one link list:
[[params.links.list1.link]]
text = "Blog"
url = "#"
- new_tab = true # Default, new tab
+ new_tab = true # new tab
[[params.links.list1.link]]
text = "Email"
url = "#"
- new_tab = false # open at same tab
+ new_tab = false # Default, open at same tab
[[params.links.list1.link]]
text = "Newsletter"
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index cbdae0b..ca61111 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -52,12 +52,12 @@ copyright = "&copy;2021 Your Name"
[[params.links.list1.link]]
text = "Blog"
url = "#"
- new_tab = true # Default, new tab
+ new_tab = true # new tab
[[params.links.list1.link]]
text = "Email"
url = "#"
- new_tab = false # open at same tab
+ new_tab = false # Default, open at same tab
[[params.links.list1.link]]
text = "Newsletter"
diff --git a/layouts/partials/links.html b/layouts/partials/links.html
index 390bf1e..3a8d692 100644
--- a/layouts/partials/links.html
+++ b/layouts/partials/links.html
@@ -8,7 +8,7 @@
<h3>{{ $list.heading }}</h3>
<ul>
{{ range $list.link }}
- <li><a href="{{ .url | safeURL }}" title="{{ .text }}" target={{ cond (.new_tab | default true) "_blank" "_self"}}>{{ .text }}</a></li>
+ <li><a href="{{ .url | safeURL }}" title="{{ .text }}" target={{ cond (.new_tab | default false) "_blank" "_self"}}>{{ .text }}</a></li>
{{ end }}
</ul>
</div>