mirror of https://gitlab.com/octtspacc/sitoctt
188 lines
4.9 KiB
HTML
188 lines
4.9 KiB
HTML
{{- $language := (string .Language) -}}
|
|
{{- with resources.Get "ButtonBadges.toml" -}}
|
|
{{- with . | transform.Unmarshal -}}
|
|
{{- range $group, $badges := . -}}
|
|
<div data-group="{{ $group }}">
|
|
{{- range $badges -}}
|
|
{{- $src := .src -}}
|
|
{{- if (or .file .src) -}}
|
|
{{- if $src -}}
|
|
{{ $src = (partial "functions/ParseFileUrl.html" $src) }}
|
|
{{- end -}}
|
|
{{- $newprops := (dict
|
|
"decoding" "async"
|
|
"src" $src
|
|
"srcRelative" .file
|
|
"hrefLinkback" .linkback
|
|
) -}}
|
|
{{- if .spam -}}
|
|
{{- $newprops = (merge $newprops (dict
|
|
"rel" "nofollow noopener"
|
|
"target" "_blank")) -}}
|
|
{{- end -}}
|
|
{{ partial "ImgButton.html" (merge . $newprops) }}
|
|
{{- else -}}
|
|
<h4>{{ partial "functions/FromLanguageObject.html" (dict "Object" .title "Language" $language) }}</h4>
|
|
{{- end -}}
|
|
{{- end -}}
|
|
</div>
|
|
{{- end -}}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
|
|
<div>
|
|
|
|
{{ partial "ImgButton.html" (dict
|
|
"alt" "Internet Archive"
|
|
"srcRelative" "Sites/Internet-Archive.png"
|
|
"href" "https://archive.org"
|
|
"rel" "nofollow"
|
|
) }}
|
|
|
|
{{ partial "ImgButton.html" (dict
|
|
"alt" "Wikipedia"
|
|
"srcRelative" "Sites/Wikipedia.png"
|
|
"href" "https://www.wikipedia.org"
|
|
"rel" "nofollow"
|
|
"title" "hu:User:Boro, CC BY-SA 3.0 <https://creativecommons.org/licenses/by-sa/3.0>, via Wikimedia Commons"
|
|
"hrefLinkback" "https://commons.wikimedia.org/wiki/File:Wikipedia-microbar-hu.png"
|
|
) }}
|
|
|
|
{{ partial "ImgButton.html" (dict
|
|
"alt" "Firefox"
|
|
"srcRelative" "Firefox-Modern.png"
|
|
"href" "https://www.mozilla.org/it/firefox"
|
|
"rel" "nofollow"
|
|
) }}
|
|
|
|
{{ partial "ImgButton.html" (dict
|
|
"alt" "The Onion Router"
|
|
"srcRelative" "Tor.png"
|
|
"href" "https://www.torproject.org/it"
|
|
"rel" "nofollow"
|
|
) }}
|
|
|
|
{{ partial "ImgButton.html" (dict
|
|
"alt" "uBlock Origin Now!"
|
|
"srcRelative" "uBlock-Origin-Now.png"
|
|
"href" "https://ublockorigin.com"
|
|
"rel" "nofollow"
|
|
) }}
|
|
|
|
<!-- Linux Now badge with Xenia the Linux Fox made by Volt: https://meow.social/@voltbun/109600348286574222 -->
|
|
{{ partial "ImgButton.html" (dict
|
|
"alt" "Linux Now!"
|
|
"srcRelative" "Linux-NOW-Xenia.png"
|
|
"href" "https://kernel.org"
|
|
"rel" "nofollow"
|
|
) }}
|
|
|
|
{{ partial "ImgButton.html" (dict
|
|
"alt" "Use Linux Online"
|
|
"srcRelative" "Linux-Online.png"
|
|
"href" "https://www.onworks.net"
|
|
"rel" "nofollow"
|
|
) }}
|
|
|
|
{{ partial "ImgButton.html" (dict
|
|
"alt" "Haiku OS Now!"
|
|
"srcRelative" "HAIKU-NOW.png"
|
|
"href" "https://www.haiku-os.org"
|
|
"rel" "nofollow"
|
|
) }}
|
|
|
|
{{ partial "ImgButton.html" (dict
|
|
"alt" "Join the Fediverse!!!"
|
|
"srcRelative" "Join-the-Fediverse.gif"
|
|
"href" "https://jointhefediverse.net"
|
|
"rel" "nofollow"
|
|
) }}
|
|
|
|
{{ partial "ImgButton.html" (dict
|
|
"alt" "matrix"
|
|
"srcRelative" "matrix.png"
|
|
"href" "https://matrix.org"
|
|
"rel" "nofollow"
|
|
) }}
|
|
|
|
{{ partial "ImgButton.html" (dict
|
|
"alt" "VOCALOID Now!"
|
|
"srcRelative" "VOCALOID-Now.png"
|
|
"href" "https://www.vocaloid.com"
|
|
"rel" "nofollow"
|
|
) }}
|
|
|
|
</div><div>
|
|
|
|
{{ partial "ImgButton.html" (dict
|
|
"alt" "ISO 8601 now!"
|
|
"srcRelative" "ISO-8601-now.png"
|
|
"href" "https://www.w3.org/QA/Tips/iso-date"
|
|
"rel" "nofollow"
|
|
) }}
|
|
|
|
{{ partial "ImgButton.html" (dict
|
|
"alt" "I support net neutrality"
|
|
"srcRelative" "I-SUPPORT-NET-NEUTRALITY.png"
|
|
"href" "https://en.wikipedia.org/wiki/Net_neutrality"
|
|
"rel" "nofollow"
|
|
) }}
|
|
|
|
{{ partial "ImgButton.html" (dict
|
|
"alt" "I support right to repair"
|
|
"srcRelative" "I-SUPPORT-RIGHT-TO-REPAIR.png"
|
|
"href" "https://en.wikipedia.org/wiki/Right_to_repair"
|
|
"rel" "nofollow"
|
|
) }}
|
|
|
|
{{ partial "ImgButton.html" (dict
|
|
"alt" "Trans Your Gender"
|
|
"srcRelative" "TRANS-YOUR-GENDER.gif"
|
|
) }}
|
|
|
|
{{ partial "ImgButton.html" (dict
|
|
"alt" "Ban Porn"
|
|
"srcRelative" "BAN-PORN.png"
|
|
) }}
|
|
|
|
{{ partial "ImgButton.html" (dict
|
|
"alt" "Defective by Design"
|
|
"srcRelative" "DEFECTIVE-by-design-ELIMINATE-DRM-NOW.webp"
|
|
"href" "https://www.defectivebydesign.org"
|
|
"rel" "nofollow"
|
|
) }}
|
|
|
|
{{ partial "ImgButton.html" (dict
|
|
"alt" "Illegal number"
|
|
"srcRelative" "aacs.2925462440.png"
|
|
"href" "https://en.wikipedia.org/wiki/Illegal_number"
|
|
"rel" "nofollow"
|
|
) }}
|
|
|
|
{{ partial "ImgButton.html" (dict
|
|
"alt" "Piracy Now!"
|
|
"srcRelative" "Piracy-Now.png"
|
|
"href" "https://fmhy.pages.dev"
|
|
"rel" "nofollow"
|
|
) }}
|
|
|
|
{{ partial "ImgButton.html" (dict
|
|
"alt" "Sharing is caring, seed your torrents"
|
|
"srcRelative" "Sharing-is-caring-seed-your-torrents.gif"
|
|
) }}
|
|
|
|
<!-- “Emulate Now!” badge from Neon with a Zero on Tumblr: https://ne0nwithazero.tumblr.com/post/702936474323206144 -->
|
|
{{ partial "ImgButton.html" (dict
|
|
"alt" "Emulate Now!"
|
|
"srcRelative" "Emulate-Now.png"
|
|
"href" "https://rentry.org/emulation"
|
|
"rel" "nofollow"
|
|
) }}
|
|
|
|
{{ partial "ImgButton.html" (dict
|
|
"alt" "Campaign against iFrames!"
|
|
"srcRelative" "Campaign-against-FRAMES.gif"
|
|
) }}
|
|
|
|
</div>
|