Commit 6fb9529c84
6fb9529c84a268a291a23ffdd90b8ebd18fa64c0
parent: c3e7d96aa5
Unsigned
cmc <hello@cleberg.net> · 2023-12-03 20:28 UTC
fix: update code block interior
Layout: unified · split
elisp/#publish.el#
added
+38
| @@ -0,0 +1,38 @@ |
| |
1 | ;; Publish org files to HTML |
| |
2 | |
| |
3 | ;; Project publishing settings |
| |
4 | (setq org-publish-project-alist |
| |
5 | '(("cleberg.net" |
| |
6 | :base-directory "~/Source/cleberg.net/" |
| |
7 | :publishing-function org-html-publish-to-html |
| |
8 | :publishing-directory "~/Source/cleberg.net/public/" |
| |
9 | :auto-sitemap t |
| |
10 | :recursive t |
| |
11 | :section-numbers nil |
| |
12 | :with-author nil |
| |
13 | :html-validation-link nil |
| |
14 | :with-tags t |
| |
15 | :html-head-include-default-style nil |
| |
16 | :html-head-include-scripts nil |
| |
17 | :html-head "<link rel=stylesheet href=/static/styles.css>" |
| |
18 | :html-preamble "<nav><a href=/>Home</a><a href=/blog/>Blog</a><a href=/services/>Services</a><a href=/wiki/>Wiki</a></nav>") |
| |
19 | |
| |
20 | ("rss" |
| |
21 | :base-directory "~/Source/cleberg.net/blog/" |
| |
22 | :base-extension "org" |
| |
23 | :html-link-home "https://cleberg.net/" |
| |
24 | :html-link-use-abs-url t |
| |
25 | :rss-extension "xml" |
| |
26 | :publishing-directory "~/Source/cleberg.net/public/" |
| |
27 | :publishing-function (org-rss-publish-to-rss) |
| |
28 | :section-numbers nil |
| |
29 | :exclude ("index.org")) |
| |
30 | |
| |
31 | ("static" |
| |
32 | :base-directory "~/Source/cleberg.net/static/" |
| |
33 | :base-extension "css\\|el" |
| |
34 | :publishing-directory "~/Source/cleberg.net/public/static/" |
| |
35 | :publishing-function org-publish-attachment) |
| |
36 | ("website" :components ("cleberg.net" "rss" "static")))) |
| |
37 | |
| |
38 | (provide 'publish) |
static/styles.css
+1
| @@ -102,6 +102,7 @@ code { |
| 102 | } |
102 | } |
| 103 | |
103 | |
| 104 | pre { |
104 | pre { |
| |
105 | background-color: #3c3836; |
| 105 | margin: 0.5rem 0; |
106 | margin: 0.5rem 0; |
| 106 | overflow-x: auto; |
107 | overflow-x: auto; |
| 107 | } |
108 | } |
static/styles.min.css
+1 −1
| @@ -1 +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 |
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{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 |