cmc/cleberg.net

My personal web garden & blog.

clone: git clone https://gitbay.org/cmc/cleberg.net.git

6fb9529c84a268a291a23ffdd90b8ebd18fa64c0

unsigned

author: Christian Cleberg <hello@cleberg.net> · 2023-12-03T20:28:53Z

fix: update code block interior
 elisp/#publish.el#    | 38 ++++++++++++++++++++++++++++++++++++++
 static/styles.css     |  1 +
 static/styles.min.css |  2 +-
 3 files changed, 40 insertions(+), 1 deletion(-)

diff --git a/elisp/#publish.el# b/elisp/#publish.el#
new file mode 100644
index 0000000..48c6f4f
--- /dev/null
+++ b/elisp/#publish.el#
@@ -0,0 +1,38 @@
+;; Publish org files to HTML
+
+;; Project publishing settings
+(setq org-publish-project-alist
+      '(("cleberg.net"
+	:base-directory "~/Source/cleberg.net/"
+	:publishing-function org-html-publish-to-html
+	:publishing-directory "~/Source/cleberg.net/public/"
+	:auto-sitemap t
+	:recursive t
+	:section-numbers nil
+	:with-author nil
+	:html-validation-link nil
+	:with-tags t
+        :html-head-include-default-style nil
+        :html-head-include-scripts nil
+	:html-head "<link rel=stylesheet href=/static/styles.css>"
+	:html-preamble "<nav><a href=/>Home</a><a href=/blog/>Blog</a><a href=/services/>Services</a><a href=/wiki/>Wiki</a></nav>")
+
+	("rss"
+	 :base-directory "~/Source/cleberg.net/blog/"
+	 :base-extension "org"
+	 :html-link-home "https://cleberg.net/"
+	 :html-link-use-abs-url t
+	 :rss-extension "xml"
+	 :publishing-directory "~/Source/cleberg.net/public/"
+	 :publishing-function (org-rss-publish-to-rss)
+	 :section-numbers nil
+	 :exclude ("index.org"))
+
+	("static"
+	:base-directory "~/Source/cleberg.net/static/"
+	:base-extension "css\\|el"
+	:publishing-directory "~/Source/cleberg.net/public/static/"
+	:publishing-function org-publish-attachment)
+	("website" :components ("cleberg.net" "rss" "static"))))
+
+(provide 'publish)
diff --git a/static/styles.css b/static/styles.css
index e1b8fbe..c2807dd 100644
--- a/static/styles.css
+++ b/static/styles.css
@@ -102,6 +102,7 @@ code {
 }
 
 pre {
+    background-color: #3c3836;
     margin: 0.5rem 0;
     overflow-x: auto;
 }
diff --git a/static/styles.min.css b/static/styles.min.css
index adbe777..76b43ae 100644
--- a/static/styles.min.css
+++ b/static/styles.min.css
@@ -1 +1 @@
-@media(prefers-reduced-motion:no-preference){:root{scroll-behavior:smooth}}body{background-color:#282828;color:#ebdbb2;font-family:Menlo,Consolas,Monaco,Liberation Mono,Lucida Console,monospace;font-size:1rem;line-height:1.5;max-width:45em;margin:0 auto;padding:0 1rem}nav,footer{border-color:#ebdbb2}h1{color:#458588}h2{color:#d79921}h3{color:#b16286}h4{color:#cc241d}h1::before{content:"* "}h2::before{content:"** "}h3::before{content:"*** "}h4::before{content:"**** "}a,a:visited{color:#689d6a;text-decoration:underline}a:hover{background-color:#689d6a;color:#282828}#preamble{padding:1rem 0}#preamble nav a{margin-right:.5rem}#postamble{border-top:1px solid #000;margin-top:1rem}img{width:100%}table{border-collapse:collapse;color:#ebdbb2;border-color:#665c54}thead,th,tr,td{border:1px solid #665c54;padding:.25rem}pre>code,time,code{font-family:Menlo,Consolas,Monaco,Liberation Mono,Lucida Console,monospace;font-size:1rem}pre{margin:.5rem 0;overflow-x:auto}pre::before,pre::after{background-color:#504945;display:block;white-space:pre}pre::before{content:"#+BEGIN_SRC"}pre::after{content:"#+END_SRC"}:not(pre)>code{color:#d79921}aside{background-color:#504945;padding:1rem}blockquote{margin:1rem 0}blockquote p{margin:0}blockquote::before,blockquote::after{background-color:#504945;display:block;white-space:pre}blockquote::before{content:"#+BEGIN_QUOTE"}blockquote::after{content:"#+END_QUOTE"}.footnote-definition{display:flex;justify-content:flex-start;align-items:top;margin:1rem 0}.footnote-definition sup{font-size:inherit;top:0;line-height:inherit;padding-right:.5rem}.footnote-definition sup::after{content:"."}.footnote-definition p{display:inline-block;margin:0}
\ No newline at end of file
+@media(prefers-reduced-motion:no-preference){:root{scroll-behavior:smooth}}body{background-color:#282828;color:#ebdbb2;font-family:Menlo,Consolas,Monaco,Liberation Mono,Lucida Console,monospace;font-size:1rem;line-height:1.5;max-width:45em;margin:0 auto;padding:0 1rem}nav,footer{border-color:#ebdbb2}h1{color:#458588}h2{color:#d79921}h3{color:#b16286}h4{color:#cc241d}h1::before{content:"* "}h2::before{content:"** "}h3::before{content:"*** "}h4::before{content:"**** "}a,a:visited{color:#689d6a;text-decoration:underline}a:hover{background-color:#689d6a;color:#282828}#preamble{padding:1rem 0}#preamble nav a{margin-right:.5rem}#postamble{border-top:1px solid #000;margin-top:1rem}img{width:100%}table{border-collapse:collapse;color:#ebdbb2;border-color:#665c54}thead,th,tr,td{border:1px solid #665c54;padding:.25rem}pre>code,time,code{font-family:Menlo,Consolas,Monaco,Liberation Mono,Lucida Console,monospace;font-size:1rem}pre{background-color:#3c3836;margin:.5rem 0;overflow-x:auto}pre::before,pre::after{background-color:#504945;display:block;white-space:pre}pre::before{content:"#+BEGIN_SRC"}pre::after{content:"#+END_SRC"}:not(pre)>code{color:#d79921}aside{background-color:#504945;padding:1rem}blockquote{margin:1rem 0}blockquote p{margin:0}blockquote::before,blockquote::after{background-color:#504945;display:block;white-space:pre}blockquote::before{content:"#+BEGIN_QUOTE"}blockquote::after{content:"#+END_QUOTE"}.footnote-definition{display:flex;justify-content:flex-start;align-items:top;margin:1rem 0}.footnote-definition sup{font-size:inherit;top:0;line-height:inherit;padding-right:.5rem}.footnote-definition sup::after{content:"."}.footnote-definition p{display:inline-block;margin:0}
\ No newline at end of file