Adding no following, referer and NewTab capability for tabs.

This commit is contained in:
Ad5001 2021-08-10 22:51:46 +02:00
parent ebd4f05942
commit 3b2c0104c5
Signed by: Ad5001
GPG Key ID: EF45F9C6AFE20160
6 changed files with 20 additions and 21 deletions

View File

@ -119,26 +119,27 @@
<div>
<h3>{{ .Title }}</h3>
{{ if hasPrefix .Title "Flatpak" }}
<a href="https://flathub.org/apps/details/{{ .Index }}">
<a rel="nofollow noreferrer" href="https://flathub.org/apps/details/{{ .Index }}">
{{ partial "badge.html" (dict "Icon" "flathub" "Lang" $lang "Alt" "storeFlathub" ) }}
</a>
<br><br>{{ i18n "warnExternalWebsite" "flathub.org" }}
{{ else if hasPrefix .Title "Snap" }}
{{ $disclaimers.Set "snapcraft" true }}
<a href="https://snapcraft.io/{{ .Index }}">
<a rel="nofollow noreferrer" href="https://snapcraft.io/{{ .Index }}">
{{ partial "badge.html" (dict "Icon" "snapcraft" "Lang" $lang "Alt" "storeSnapcraft" ) }}
</a>
<br><br>{{ i18n "warnExternalWebsite" "snapcraft.io" }}
{{ else if hasPrefix .Title "Firefox" }}
{{ $disclaimers.Set "firefox" true }}
<a href="https://addons.mozilla.org/en-US/firefox/addon/{{ .Index }}/">
<a rel="nofollow noreferrer" href="https://addons.mozilla.org/en-US/firefox/addon/{{ .Index }}/">
{{ partial "badge.html" (dict "Icon" "amo" "Lang" $lang "Alt" "storeFirefoxAddons" ) }}
</a>
<br><br>{{ i18n "warnExternalWebsite" "addons.mozilla.org" }}
{{ else }}
{{ i18n "file" }} {{ replace .Name "<version>" $appdata.version }}<br><br>
<div class="primary center fit-content" role="button">
<a href="https://artifacts.accountfree.org/repository/apps.ad5001.eu-apps/{{ $appindex }}/v{{ $appdata.version }}/{{ replace .File "<version>" $appdata.version }}">
{{ $filename := replace .File "<version>" $appdata.version }}
<a href="https://artifacts.accountfree.org/repository/apps.ad5001.eu-apps/{{ $appindex }}/v{{ $appdata.version }}/{{ $filename }}" download rel="nofollow noreferrer">
<i class="icon-download icon-as-text" alt=""></i>{{ i18n "download" }}
</a>
</div>

View File

@ -11,11 +11,7 @@
</div>
<div class="social-list grid flex-center 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>
<br>
<br>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View 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 }}