diff options
Diffstat (limited to 'publish.el')
-rw-r--r-- | publish.el | 33 |
1 files changed, 7 insertions, 26 deletions
@@ -51,31 +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 { max-width:90rem; } -.title { - text-align:center; - font-size:2.5em; -} -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; } -#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 '() @@ -84,4 +60,9 @@ table > tbody > tr:last-child > :is(th, td) { border-bottom: 2px solid; } :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")))) |