about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBaitinq <[email protected]>2022-10-19 01:48:21 +0200
committerBaitinq <[email protected]>2022-10-19 16:34:51 +0200
commit6767b0abb5bd605b5e65a2d9dcba1865b9068ae6 (patch)
tree7129a84e7cd91c7b9f4d7040dab9e910a949cc0b
parentAdd pgp public key in the static content (diff)
downloadbaitinq.ml-6767b0abb5bd605b5e65a2d9dcba1865b9068ae6.tar.gz
baitinq.ml-6767b0abb5bd605b5e65a2d9dcba1865b9068ae6.tar.bz2
baitinq.ml-6767b0abb5bd605b5e65a2d9dcba1865b9068ae6.zip
Footer: Split footer into footer1 and footer2
We now add "Hosted on NixOS" to the footer thanks to this.
-rw-r--r--config.toml5
-rw-r--r--themes/researcher/layouts/partials/footer.html8
2 files changed, 10 insertions, 3 deletions
diff --git a/config.toml b/config.toml
index 7dfa49f..9708ba7 100644
--- a/config.toml
+++ b/config.toml
@@ -11,9 +11,12 @@ theme = "researcher"
   description = "Personal website."
   favicon = "favicon.ico"  # path to a .ico to use as favicon
   logo = ""  # url or path to a logo to put in the header
-  [params.footer]
+  [params.footer1]
     text = "By Baitinq"
     url = "https://github.com/Baitinq/baitinq.ml"
+  [params.footer2]
+    text = "Hosted on NixOS."
+    url = "https://nixos.org"
   [params.style]  # appearance options (can be omitted)
     fontFamily = "Inconsolata"
     pageWidth = "750px"
diff --git a/themes/researcher/layouts/partials/footer.html b/themes/researcher/layouts/partials/footer.html
index b027256..3a55194 100644
--- a/themes/researcher/layouts/partials/footer.html
+++ b/themes/researcher/layouts/partials/footer.html
@@ -7,9 +7,13 @@
         {{ end }}
     </div>
     {{ end }}
-    {{ with .Site.Params.footer }}
         <div class="container text-center">
+    {{ with .Site.Params.footer1 }}
+            <a href="{{ .url | absURL }}" title="{{ .text }}"><small>{{ .text }}</small></a>
+    {{ end }} -
+{{ with .Site.Params.footer2 }}
             <a href="{{ .url | absURL }}" title="{{ .text }}"><small>{{ .text }}</small></a>
-        </div>
     {{ end }}
+        </div>
+
 </div>