From 52fca1e9263a4e791a65051e4d916b7fa3dc1db8 Mon Sep 17 00:00:00 2001 From: Jacob Janzen Date: Tue, 31 Dec 2024 12:29:45 -0600 Subject: try redoing webring --- css/stylesheet.css | 29 +++++++++++++++++++++++++++++ publish.el | 31 ++++++++++++++++++++++++++++--- 2 files changed, 57 insertions(+), 3 deletions(-) diff --git a/css/stylesheet.css b/css/stylesheet.css index c60a35b..318850a 100644 --- a/css/stylesheet.css +++ b/css/stylesheet.css @@ -48,6 +48,35 @@ a:hover { padding: 10px 10px; } +.cssa-webring-container { + all: unset; + display: flex; + flex-direction: column; + padding: 1em; +} + +.cssa-webring-description { + margin-block-end: 0.5em; +} + +.cssa-webring-site-links { + display: grid; + grid-template-columns: repeat(3, minmax(0, 1fr)); + list-style: none; + margin: 0; + padding: 0; +} + +.cssa-webring-prev-site a::before { + content: "←"; + margin-inline-end: 1ch; +} + +.cssa-webring-next-site a::after { + content: "→"; + margin-inline-start: 1ch; +} + .footer { width: 700px; bottom: 0; diff --git a/publish.el b/publish.el index 4720290..1ac2613 100644 --- a/publish.el +++ b/publish.el @@ -73,10 +73,32 @@ (if (equal "rss.org" (file-name-nondirectory filename)) (org-rss-publish-to-rss plist filename dir))) -(defvar jj/html-preamble "
HomeProjectsBlogDotfilesAbout MeRSSGit
") +(defvar jj/html-preamble "\ +
\ + Home\ + Projects\ + Blog\ + Dotfiles\ + About Me\ + RSS\ + Git\ +
") +(defvar jj/html-postamble "\ +") (setq org-html-htmlize-output-type 'css) -(setq org-html-postamble 'create-webring-html) (setq org-publish-project-alist `( ("org-core" @@ -89,7 +111,8 @@ :headline-levels 4 :section-numbers nil :html-head "" - :html-preamble ,jj/html-preamble) + :html-preamble ,jj/html-preamble + :html-postamble ,jj/html-postamble) ("org-static-website" :base-directory "~/website/" :base-extension "txt\\|css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf" @@ -110,6 +133,7 @@ :section-numbers nil :html-head "" :html-preamble ,jj/html-preamble + :html-postamble ,jj/html-postamble :auto-sitemap t :sitemap-filename "index.org" :sitemap-format-entry my/org-publish-org-sitemap-format @@ -137,6 +161,7 @@ :base-extension "org" :html-head "" :html-preamble ,jj/html-preamble + :html-postamble ,jj/html-postamble :html-wrap-src-lines t :with-toc nil :section-numbers nil -- cgit v1.2.3