Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/peaceiris/hugo-theme-iris.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShohei Ueda <30958501+peaceiris@users.noreply.github.com>2021-06-13 12:34:28 +0300
committerGitHub <noreply@github.com>2021-06-13 12:34:28 +0300
commitb673cdd67cbcf7721dd92f96e82ac2c5cd603958 (patch)
tree82ee9653ff66c2fafadde9677000fba48fe7bc66 /layouts
parent4090c0096b2c4d50733ff62550104b2972552639 (diff)
feat: open menu link in new tab (#370)
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/footer.html4
-rw-r--r--layouts/partials/header.html7
2 files changed, 8 insertions, 3 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index ae747db2..755c0353 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -1,12 +1,12 @@
<footer class="footer hero is-dark is-bold">
<div class="content has-text-centered container">
© {{ with .Site.Params.footer.copyright.year }}{{ . }}{{ else }}{{ now.Format "2006" }}{{ end }}
- {{ with .Site.Params.footer.copyright.link }}<a href="{{ . }}" rel="noopener noreferrer" target=_blank>{{ end }}
+ {{ with .Site.Params.footer.copyright.link }}<a href="{{ . }}" rel="noopener noreferrer" target="_blank">{{ end }}
{{ with .Site.Params.footer.copyright.name }}{{ . }}{{ end }}
{{ if .Site.Params.footer.copyright.link }}</a>{{ end }}
</div>
<div class="content has-text-centered container">
- Powered by <a href="https://gohugo.io/" rel="noopener noreferrer" target=_blank><i>Hugo</i></a> {{ hugo.Version }} and <a href="https://github.com/peaceiris/hugo-theme-iris" rel="noopener noreferrer" target=_blank><i>Iris Theme</i></a>
+ Powered by <a href="https://gohugo.io/" rel="noopener noreferrer" target="_blank"><i>Hugo</i></a> {{ hugo.Version }} and <a href="https://github.com/peaceiris/hugo-theme-iris" rel="noopener noreferrer" target="_blank"><i>Iris Theme</i></a>
<!-- Latest build: -->
{{/* {{ now.Format "2006-01-02 15:04:05" }} ({{ .GitInfo.AbbreviatedHash }}) */}}
</div>
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index ee1699de..e924159c 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -27,7 +27,12 @@
<div id="hero-head-navbar-menu" class="navbar-menu">
<div class="navbar-end">
{{ range .Site.Menus.main }}
- <a class="navbar-item" href="{{ .URL | relLangURL }}">
+ <a
+ class="navbar-item"
+ href="{{ .URL | relLangURL }}"
+ target="{{ .Params.target }}"
+ rel="{{ .Params.rel }}"
+ >
{{ i18n .Name }}
</a>
{{ end }}