Adding no following, referer and NewTab capability for tabs.
This commit is contained in:
parent
ebd4f05942
commit
3b2c0104c5
6 changed files with 20 additions and 21 deletions
|
@ -4,11 +4,7 @@
|
|||
<br>
|
||||
<div class="columns-container">
|
||||
<div class="col3 social-list grid padding-container-point3">
|
||||
{{ range .Site.Data.menu.social }}
|
||||
<a role="button" alt="{{ .name }}" title="{{ .name }}" href="{{ replace .URL "<lang>" $lang }}">
|
||||
<i class="icon-{{ .icon }}" alt="{{ .icon }} social icon"></i>
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ partial "social-buttons" (dict "Buttons" .Site.Data.menu.social "Lang" $lang) }}
|
||||
</div>
|
||||
<div class="text-center col3">
|
||||
<br>
|
||||
|
@ -17,11 +13,11 @@
|
|||
|
||||
</div>
|
||||
<div class="col3 text-right padding-container-1">
|
||||
<p>{{ i18n "usingTheme" }} <a href="https://git.ad5001.eu/Ad5001/omegamma">Omegamma</a></p>
|
||||
<p>{{ i18n "poweredBy" }} <a href="https://gohugo.io">Hugo</a></p>
|
||||
<p><a href="{{ .Site.Params.websiteSource }}">{{ i18n "websiteSource" }}</a>
|
||||
<p>{{ i18n "usingTheme" }} <a href="https://git.ad5001.eu/Ad5001/omegamma" rel="nofollow noreferrer">Omegamma</a></p>
|
||||
<p>{{ i18n "poweredBy" }} <a href="https://gohugo.io" rel="nofollow noreferrer">Hugo</a></p>
|
||||
<p><a href="{{ .Site.Params.websiteSource }}" rel="nofollow noreferrer">{{ i18n "websiteSource" }}</a>
|
||||
{{ if .GitInfo }}
|
||||
- built from <a href="{{ .Site.Params.websiteSource }}/commit/{{ .GitInfo.Hash }}">{{ .GitInfo.AbbreviatedHash }}</a>
|
||||
- built from <a href="{{ .Site.Params.websiteSource }}/commit/{{ .GitInfo.Hash }}" rel="nofollow noreferrer">{{ .GitInfo.AbbreviatedHash }}</a>
|
||||
{{ end }}
|
||||
</p>
|
||||
</div>
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
<ul class="sub-menu">
|
||||
{{ range .Children }}
|
||||
<li class="{{ if $currentPage.IsMenuCurrent "main" . }}active{{ end }} background">
|
||||
<a href="{{ .URL }}" role="button">
|
||||
<a href="{{ .URL }}" role="button" rel="nofollow noreferrer">
|
||||
{{ .Name }}
|
||||
</a>
|
||||
</li>
|
||||
|
@ -40,7 +40,7 @@
|
|||
</li>
|
||||
{{ else }}
|
||||
<li class="{{ if $currentPage.IsMenuCurrent "main" . }}active{{ end }}">
|
||||
<a href="{{ .URL }}" role="button">
|
||||
<a href="{{ .URL }}" role="button" rel="nofollow noreferrer">
|
||||
{{ .Pre }}
|
||||
<span>{{ .Name }}</span>
|
||||
</a>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{{ range . }}
|
||||
<div role="button" class="primary">
|
||||
<a href="{{ .URL | safeURL }}" role="button" title="{{ .Title }}">
|
||||
<a href="{{ .URL | safeURL }}" role="button" title="{{ .Title }}" rel="nofollow noreferrer" {{ if .NewTab }}target="_blank"{{ end }}>
|
||||
<i class="icon-{{ lower .Icon }} icon-as-text" alt="{{ .Icon }}"></i>{{ .Title }}
|
||||
</a>
|
||||
</div>
|
||||
|
|
6
layouts/partials/social-buttons.html
Normal file
6
layouts/partials/social-buttons.html
Normal file
|
@ -0,0 +1,6 @@
|
|||
{{ $lang := .Lang }}
|
||||
{{ range .Buttons }}
|
||||
<a role="button" alt="{{ .name }}" title="{{ .name }}" href="{{ replace .URL "<lang>" $lang }}">
|
||||
<i class="icon-{{ .icon }}" alt="{{ .icon }} social icon"></i>
|
||||
</a>
|
||||
{{ end }}
|
Loading…
Add table
Add a link
Reference in a new issue