Adding no following, referer and NewTab capability for tabs.

This commit is contained in:
Adsooi 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> <div>
<h3>{{ .Title }}</h3> <h3>{{ .Title }}</h3>
{{ if hasPrefix .Title "Flatpak" }} {{ 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" ) }} {{ partial "badge.html" (dict "Icon" "flathub" "Lang" $lang "Alt" "storeFlathub" ) }}
</a> </a>
<br><br>{{ i18n "warnExternalWebsite" "flathub.org" }} <br><br>{{ i18n "warnExternalWebsite" "flathub.org" }}
{{ else if hasPrefix .Title "Snap" }} {{ else if hasPrefix .Title "Snap" }}
{{ $disclaimers.Set "snapcraft" true }} {{ $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" ) }} {{ partial "badge.html" (dict "Icon" "snapcraft" "Lang" $lang "Alt" "storeSnapcraft" ) }}
</a> </a>
<br><br>{{ i18n "warnExternalWebsite" "snapcraft.io" }} <br><br>{{ i18n "warnExternalWebsite" "snapcraft.io" }}
{{ else if hasPrefix .Title "Firefox" }} {{ else if hasPrefix .Title "Firefox" }}
{{ $disclaimers.Set "firefox" true }} {{ $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" ) }} {{ partial "badge.html" (dict "Icon" "amo" "Lang" $lang "Alt" "storeFirefoxAddons" ) }}
</a> </a>
<br><br>{{ i18n "warnExternalWebsite" "addons.mozilla.org" }} <br><br>{{ i18n "warnExternalWebsite" "addons.mozilla.org" }}
{{ else }} {{ else }}
{{ i18n "file" }} {{ replace .Name "<version>" $appdata.version }}<br><br> {{ i18n "file" }} {{ replace .Name "<version>" $appdata.version }}<br><br>
<div class="primary center fit-content" role="button"> <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" }} <i class="icon-download icon-as-text" alt=""></i>{{ i18n "download" }}
</a> </a>
</div> </div>

View file

@ -11,11 +11,7 @@
</div> </div>
<div class="social-list grid flex-center padding-container-point3"> <div class="social-list grid flex-center padding-container-point3">
{{ range .Site.Data.menu.social }} {{ partial "social-buttons" (dict "Buttons" .Site.Data.menu.social "Lang" $lang) }}
<a role="button" alt="{{ .name }}" title="{{ .name }}" href="{{ replace .URL "<lang>" $lang }}">
<i class="icon-{{ .icon }}" alt="{{ .icon }} social icon"></i>
</a>
{{ end }}
</div> </div>
<br> <br>
<br> <br>

View file

@ -4,11 +4,7 @@
<br> <br>
<div class="columns-container"> <div class="columns-container">
<div class="col3 social-list grid padding-container-point3"> <div class="col3 social-list grid padding-container-point3">
{{ range .Site.Data.menu.social }} {{ partial "social-buttons" (dict "Buttons" .Site.Data.menu.social "Lang" $lang) }}
<a role="button" alt="{{ .name }}" title="{{ .name }}" href="{{ replace .URL "<lang>" $lang }}">
<i class="icon-{{ .icon }}" alt="{{ .icon }} social icon"></i>
</a>
{{ end }}
</div> </div>
<div class="text-center col3"> <div class="text-center col3">
<br> <br>
@ -17,11 +13,11 @@
</div> </div>
<div class="col3 text-right padding-container-1"> <div class="col3 text-right padding-container-1">
<p>{{ i18n "usingTheme" }} <a href="https://git.ad5001.eu/Ad5001/omegamma">Omegamma</a></p> <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">Hugo</a></p> <p>{{ i18n "poweredBy" }} <a href="https://gohugo.io" rel="nofollow noreferrer">Hugo</a></p>
<p><a href="{{ .Site.Params.websiteSource }}">{{ i18n "websiteSource" }}</a> <p><a href="{{ .Site.Params.websiteSource }}" rel="nofollow noreferrer">{{ i18n "websiteSource" }}</a>
{{ if .GitInfo }} {{ 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 }} {{ end }}
</p> </p>
</div> </div>

View file

@ -31,7 +31,7 @@
<ul class="sub-menu"> <ul class="sub-menu">
{{ range .Children }} {{ range .Children }}
<li class="{{ if $currentPage.IsMenuCurrent "main" . }}active{{ end }} background"> <li class="{{ if $currentPage.IsMenuCurrent "main" . }}active{{ end }} background">
<a href="{{ .URL }}" role="button"> <a href="{{ .URL }}" role="button" rel="nofollow noreferrer">
{{ .Name }} {{ .Name }}
</a> </a>
</li> </li>
@ -40,7 +40,7 @@
</li> </li>
{{ else }} {{ else }}
<li class="{{ if $currentPage.IsMenuCurrent "main" . }}active{{ end }}"> <li class="{{ if $currentPage.IsMenuCurrent "main" . }}active{{ end }}">
<a href="{{ .URL }}" role="button"> <a href="{{ .URL }}" role="button" rel="nofollow noreferrer">
{{ .Pre }} {{ .Pre }}
<span>{{ .Name }}</span> <span>{{ .Name }}</span>
</a> </a>

View file

@ -1,6 +1,6 @@
{{ range . }} {{ range . }}
<div role="button" class="primary"> <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 }} <i class="icon-{{ lower .Icon }} icon-as-text" alt="{{ .Icon }}"></i>{{ .Title }}
</a> </a>
</div> </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 }}