pollux.codes

Files for the pollux.codes site
git clone git://pollux.codes/git/pollux.codes.git
Log | Files | Refs

commit 6b12a423f4affa819a8a53f6a434d7db14541d8e
parent 17e64af70632097ff7e6fabe960361cf767de919
Author: Pollux <pollux@pollux.codes>
Date:   Fri, 24 Jan 2025 17:03:06 -0600

Add buttons to footer

Signed-off-by: Pollux <pollux@pollux.codes>

Diffstat:
Aassets/buttons/coffee.gif | 0
Aassets/buttons/gnu-linux.gif | 0
Aassets/buttons/hatemac.jpg | 0
Aassets/buttons/hatems.jpg | 0
Aassets/buttons/landchad.gif | 0
Aassets/buttons/msx.gif | 0
Mhugo.toml | 10++++++++++
Mlayouts/partials/footer.html | 12+++++++++++-
8 files changed, 21 insertions(+), 1 deletion(-)

diff --git a/assets/buttons/coffee.gif b/assets/buttons/coffee.gif Binary files differ. diff --git a/assets/buttons/gnu-linux.gif b/assets/buttons/gnu-linux.gif Binary files differ. diff --git a/assets/buttons/hatemac.jpg b/assets/buttons/hatemac.jpg Binary files differ. diff --git a/assets/buttons/hatems.jpg b/assets/buttons/hatems.jpg Binary files differ. diff --git a/assets/buttons/landchad.gif b/assets/buttons/landchad.gif Binary files differ. diff --git a/assets/buttons/msx.gif b/assets/buttons/msx.gif Binary files differ. diff --git a/hugo.toml b/hugo.toml @@ -11,5 +11,15 @@ title = 'pollux codes' arttags = "/art/tags/:title" [params] + + buttons = [ + { file="buttons/msx.gif", url="https://heckscaper.com" }, + { file="buttons/landchad.gif", url="https://landchad.net" }, + { file="buttons/gnu-linux.gif" }, + { file="buttons/hatems.jpg" }, + { file="buttons/hatemac.jpg" }, + { file="buttons/coffee.gif" } + ] + [params.author] name = 'Pollux' diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html @@ -1,5 +1,15 @@ <footer> <hr> <a href="#">Back to top</a><br>Design inspired by the <a href="https://bestmotherfucking.website">best motherfucking website</a>. - <p style="margin: 0" xmlns:cc="http://creativecommons.org/ns#" >This work is licensed under <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/?ref=chooser-v1" target="_blank" rel="license noopener noreferrer" style="display:inline-block;">CC BY-NC-SA 4.0</a>.</p> + <p style="margin: 0" xmlns:cc="http://creativecommons.org/ns#" >This work is licensed under <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/?ref=chooser-v1" target="_blank" rel="license noopener noreferrer" style="display:inline-block;">CC BY-NC-SA 4.0</a>.</p> + <div style="max-width: 528px; margin:0em auto"> + {{ range (index .Site.Params "buttons") -}} + {{- $image := resources.Get .file -}} + {{- if .url -}} + <a href="{{ .url }}"><img src="{{ $image.RelPermalink }}"></a> + {{- else -}} + <img src="{{ $image.RelPermalink }}"> + {{- end -}} + {{- end }} + </div> </footer>