try redoing webring
This commit is contained in:
parent
a35cf51968
commit
52fca1e926
2 changed files with 57 additions and 3 deletions
|
@ -48,6 +48,35 @@ a:hover {
|
||||||
padding: 10px 10px;
|
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 {
|
.footer {
|
||||||
width: 700px;
|
width: 700px;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
|
|
31
publish.el
31
publish.el
|
@ -73,10 +73,32 @@
|
||||||
(if (equal "rss.org" (file-name-nondirectory filename))
|
(if (equal "rss.org" (file-name-nondirectory filename))
|
||||||
(org-rss-publish-to-rss plist filename dir)))
|
(org-rss-publish-to-rss plist filename dir)))
|
||||||
|
|
||||||
(defvar jj/html-preamble "<div class='topnav'><a href='/'>Home</a><a href='/projects.html'>Projects</a><a href='/blog'>Blog</a><a href='/dotfiles/'>Dotfiles</a><a href='/about.html'>About Me</a><a href='/rss.xml'>RSS</a><a target='_blank' href='https://git.jjanzen.ca/'>Git</a></div>")
|
(defvar jj/html-preamble "\
|
||||||
|
<div class='topnav'>\
|
||||||
|
<a href='/'>Home</a>\
|
||||||
|
<a href='/projects.html'>Projects</a>\
|
||||||
|
<a href='/blog'>Blog</a>\
|
||||||
|
<a href='/dotfiles/'>Dotfiles</a>\
|
||||||
|
<a href='/about.html'>About Me</a>\
|
||||||
|
<a href='/rss.xml'>RSS</a>\
|
||||||
|
<a target='_blank' href='https://git.jjanzen.ca/'>Git</a>\
|
||||||
|
</div>")
|
||||||
|
(defvar jj/html-postamble "\
|
||||||
|
<footer>\
|
||||||
|
<aside class='cssa-webring-container'>\
|
||||||
|
<section class='cssa-webring-description'>\
|
||||||
|
\"Official\" CSSA Webring\
|
||||||
|
</section>\
|
||||||
|
<ul class='cssa-webring-site-links'>\
|
||||||
|
<li class='cssa-webring-prev-site'><a href='https://jjanzen.ca'>jjanzen</a></li>\
|
||||||
|
<li class='cssa-webring-curr-site'><a href='https://jjanzen.ca'>jjanzen</a></li>\
|
||||||
|
<li class='cssa-webring-next-site'><a href='https://jjanzen.ca'>jjanzen</a></li>\
|
||||||
|
</ul>\
|
||||||
|
</aside>\
|
||||||
|
<section class='copyright-notice'>copyright © jjanzen 2024</section>
|
||||||
|
</footer>")
|
||||||
|
|
||||||
(setq org-html-htmlize-output-type 'css)
|
(setq org-html-htmlize-output-type 'css)
|
||||||
(setq org-html-postamble 'create-webring-html)
|
|
||||||
(setq org-publish-project-alist
|
(setq org-publish-project-alist
|
||||||
`(
|
`(
|
||||||
("org-core"
|
("org-core"
|
||||||
|
@ -89,7 +111,8 @@
|
||||||
:headline-levels 4
|
:headline-levels 4
|
||||||
:section-numbers nil
|
:section-numbers nil
|
||||||
:html-head "<link rel='stylesheet' href='/css/stylesheet.css' type='text/css'/>"
|
:html-head "<link rel='stylesheet' href='/css/stylesheet.css' type='text/css'/>"
|
||||||
:html-preamble ,jj/html-preamble)
|
:html-preamble ,jj/html-preamble
|
||||||
|
:html-postamble ,jj/html-postamble)
|
||||||
("org-static-website"
|
("org-static-website"
|
||||||
:base-directory "~/website/"
|
:base-directory "~/website/"
|
||||||
:base-extension "txt\\|css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf"
|
:base-extension "txt\\|css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf"
|
||||||
|
@ -110,6 +133,7 @@
|
||||||
:section-numbers nil
|
:section-numbers nil
|
||||||
:html-head "<link rel='stylesheet' href='/css/stylesheet.css' type='text/css'/>"
|
:html-head "<link rel='stylesheet' href='/css/stylesheet.css' type='text/css'/>"
|
||||||
:html-preamble ,jj/html-preamble
|
:html-preamble ,jj/html-preamble
|
||||||
|
:html-postamble ,jj/html-postamble
|
||||||
:auto-sitemap t
|
:auto-sitemap t
|
||||||
:sitemap-filename "index.org"
|
:sitemap-filename "index.org"
|
||||||
:sitemap-format-entry my/org-publish-org-sitemap-format
|
:sitemap-format-entry my/org-publish-org-sitemap-format
|
||||||
|
@ -137,6 +161,7 @@
|
||||||
:base-extension "org"
|
:base-extension "org"
|
||||||
:html-head "<link rel='stylesheet' href='/css/stylesheet.css' type='text/css'/>"
|
:html-head "<link rel='stylesheet' href='/css/stylesheet.css' type='text/css'/>"
|
||||||
:html-preamble ,jj/html-preamble
|
:html-preamble ,jj/html-preamble
|
||||||
|
:html-postamble ,jj/html-postamble
|
||||||
:html-wrap-src-lines t
|
:html-wrap-src-lines t
|
||||||
:with-toc nil
|
:with-toc nil
|
||||||
:section-numbers nil
|
:section-numbers nil
|
||||||
|
|
Loading…
Add table
Reference in a new issue