add GNU Inside badge
authorAmin Bandali <bandali@gnu.org>
Tue, 27 Nov 2018 05:21:41 +0000 (00:21 -0500)
committerAmin Bandali <bandali@gnu.org>
Tue, 27 Nov 2018 05:23:41 +0000 (00:23 -0500)
(shout out to mtg)

assets/gnu-inside.png [new file with mode: 0644]
config.toml
layouts/partials/footer-block.html [new file with mode: 0644]

diff --git a/assets/gnu-inside.png b/assets/gnu-inside.png
new file mode 100644 (file)
index 0000000..fdcceca
Binary files /dev/null and b/assets/gnu-inside.png differ
index 2d1cb17..4c6a3d7 100644 (file)
@@ -29,6 +29,10 @@ pygmentsUseClasses = true       # This applies to Chroma too.
               """
   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"
diff --git a/layouts/partials/footer-block.html b/layouts/partials/footer-block.html
new file mode 100644 (file)
index 0000000..02bccfc
--- /dev/null
@@ -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 }}