ba696547714a5918b2ccbee0fd21235b9d0919be — Amin Bandali 3 months ago 32d82dc
add GNU Inside badge

(shout out to mtg)
3 files changed, 16 insertions(+), 0 deletions(-)

A assets/gnu-inside.png
M config.toml
A layouts/partials/footer-block.html
A assets/gnu-inside.png => assets/gnu-inside.png +0 -0

        
M config.toml => config.toml +4 -0
@@ 29,6 29,10 @@ """
    favicons = true
  
+   [Params.gnu_inside]
+     enabled  = true
+     url = "https://www.gnu.org"
+ 
    [Params.source]
      url = "https://git.sr.ht/~bandali/aminb.org"
      md_dir = "content"

A layouts/partials/footer-block.html => layouts/partials/footer-block.html +12 -0
@@ 0,0 1,12 @@
+ {{ define "footer" }}
+ {{ with .Site.Params.gnu_inside }}
+ {{ if .enabled }}
+ <div id="gnu-inside" style="position: absolute; top: 0px; right: 0px;">
+   <a href="{{ .url | relURL }}" style="border: none !important">
+     <img src="{{ (resources.Get "gnu-inside.png" | fingerprint).RelPermalink }}"
+          alt="GNU Inside!" title="GNU Inside!"/>
+   </a>
+ </div>
+ {{ end }}
+ {{ end }}
+ {{ end }}