diff options
Diffstat (limited to 'publish.el')
-rw-r--r-- | publish.el | 48 |
1 files changed, 7 insertions, 41 deletions
@@ -51,46 +51,7 @@ :html-postamble "<ul> <li>© 2022 <a href=\"https://yannherklotz.com\">Yann Herklotz</a></li> <li><a href=\"https://creativecommons.org/licenses/by-sa/4.0/\">CC BY-SA 4.0</a></li></ul>" - :html-head "<style> -body { margin: 0; font-family: monospace; } -.title { - text-align:center; - font-size:2.5em; -} -.outline-text-2 { - display: flex; - flex-direction: row; - flex-wrap: wrap; - background-color: #d3d5ef; - text-align: center; - padding: 2rem 10rem; -} -.outline-text-2 > * { - margin: 1rem auto; -} -table { border-collapse: collapse; } -img { max-width:100%; } -table { - margin-top:2rem; - margin-right:2rem; -} -table > :is(thead, tbody) > tr > :is(th, td) { - padding: 3px; - text-align: left; -} -table > thead > tr > :is(th, td) { - border-top: 2px solid; - border-bottom: 1px solid; -} -table > tbody > tr:last-child > :is(th, td) { border-bottom: 2px solid; } -h2, h3, h4, h5, h6, p, ul { - max-width: 50rem; - margin: 1rem auto; -} -#postamble { padding: 1.5rem 0; text-align: center; } -#postamble ul li { display: inline-block; } -#postamble ul { padding: 0; } -#postamble li { margin-right: 2em; }</style>") + :html-head "<link rel=\"stylesheet\" href=\"/css/main.css\">") (list "ymhg-notes-static" :base-directory (concat ymhg-notes-dir "notes/static") :include '() @@ -99,4 +60,9 @@ h2, h3, h4, h5, h6, p, ul { :publishing-directory (concat ymhg-notes-dir "public/static") :publishing-function #'org-publish-attachment :recursive t) - (list "ymhg-notes" :components '("ymhg-notes-org" "ymhg-notes-static")))) + (list "ymhg-notes-css" + :base-directory (concat ymhg-notes-dir "css") + :base-extension "css" + :publishing-directory (concat ymhg-notes-dir "public/css") + :publishing-function #'org-publish-attachment) + (list "ymhg-notes" :components '("ymhg-notes-org" "ymhg-notes-static" "ymhg-notes-css")))) |