From e63d60bd37253523f1229dfc8e010804a05d1ae8 Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Mon, 6 Nov 2023 15:50:42 -0600 Subject: [PATCH] stylize footer links --- config/_default/params.toml | 20 ++++++++++++++++++++ layouts/partials/footer.html | 4 ++-- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/config/_default/params.toml b/config/_default/params.toml index d23c032..4169fed 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -134,3 +134,23 @@ url = "https://runtimeterror.dev/simplex" icon = "fa-solid fa-envelope" title = "Email" url = "mailto:ops@runtimeterror.dev" + +[[powerLinks]] +title = "hugo" +url = "https://gohugo.io" + +[[powerLinks]] +title = "netlify" +url = "https://www.netlify.com" + +[[powerLinks]] +title = "risotto" +url = "https://github.com/joeroe/risotto" + +[[powerLinks]] +title = "torchlight" +url = "https://torchlight.dev" + +[[powerLinks]] +title = "cabin" +url = "https://withcabin.com/privacy/runtimeterror.dev" \ No newline at end of file diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 97c351c..6ac089d 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,7 +1,7 @@ {{- partial "lang.html" . -}} - +

{"powered_by": [{{- range $i, $link := .Site.Params.powerLinks }}{{ if $i }}, {{ end }}"{{ $link.title }}"{{ end }}]} +
<view source>

{{ if (findRE "