commit 6b3db19aa83d8f9cafcc2244400728de6b0b99d4 parent ef46b9a774dfb1c83d716a54764a581b2c9f7bff Author: Shivakumar <[email protected]> Date: Wed, 14 Oct 2026 22:53:39 +0530 update footer Signed-off-by: Shivakumar <[email protected]> Diffstat:
| M | org/style.css | | | 36 | +++++++++++++++++++++++++++++++++++- |
| M | publish.el | | | 19 | ++++++++++++++----- |
2 files changed, 49 insertions(+), 6 deletions(-)
diff --git a/org/style.css b/org/style.css @@ -294,4 +294,38 @@ code { font-family: "Iosevka Slab"; } .underline { text-decoration: underline; } -footer { margin-top: auto; } +footer { + margin-top: auto; + font-size: 90%; + line-height: 1.5em; +} + +.cc-icons { + display: inline-flex; + gap: 0.12em; + vertical-align: center; + margin-right: 0; +} + +.cc-icon { + display: inline-block; + width: 1.1em; + height: 1.1em; + background-color: var(--fg); + -webkit-mask-repeat: no-repeat; + mask-repeat: no-repeat; + -webkit-mask-position: center; + mask-position: center; + -webkit-mask-size: contain; + mask-size: contain; +} + +.cc-icon.cc { + -webkit-mask-image: url("/static/cc.svg"); + mask-image: url("/static/cc.svg"); +} + +.cc-icon.by { + -webkit-mask-image: url("/static/by.svg"); + mask-image: url("/static/by.svg"); +} diff --git a/publish.el b/publish.el @@ -128,11 +128,20 @@ (defvar my/html-opts '(:publishing-function org-html-publish-to-html :html-preamble my/preamble - :html-postamble "<footer> - <hr> - <p>Created by a human.</p> - <p>Copyright © 2026 Shivakumar AT disroot DOT org.</p> - </footer>" + :html-postamble "<footer> <hr> <p>Created by a human. + This site is hosted on OpenBSD via httpd. + This <a href=\"https://git.ntgs.me/site\">website source code</a>. + </p> + <p> + <a class=\"cc-icons\" href=\"https://creativecommons.org/licenses/by/4.0/\" + rel=\"license\" aria-label=\"Creative Commons Attribution 4.0 license\"> + <span class=\"cc-icon cc\"></span> + <span class=\"cc-icon by\"></span> + </a> + CC BY-4.0 + Copyright © 2026 Shivakumar. + </p> + </footer>" :html-head-include-default-style nil :html-head-include-scripts nil :html-head "<link rel=\"stylesheet\" type=\"text/css\" href=\"/style.css\" />