diff options
Diffstat (limited to 'build-site.el')
| -rw-r--r-- | build-site.el | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/build-site.el b/build-site.el index 2d7eedc..609949f 100644 --- a/build-site.el +++ b/build-site.el @@ -1,11 +1,13 @@ +(package-initialize) (require 'ox-publish) +(require 'webfeeder) (setq org-html-validation-link nil org-html-head-include-scripts nil org-html-doctype "html5" org-html-html5-fancy t org-html-head-include-default-style nil - org-html-postamble nil + ;; org-html-postamble nil org-html-head (with-temp-buffer (insert-file-contents "head.html") (buffer-string))) @@ -27,6 +29,7 @@ :publishing-directory "./public" ;; :with-title nil :with-toc nil + :html-postamble nil :section-numbers nil :time-stamp-file nil) (list "assets" @@ -49,6 +52,16 @@ :sitemap-sort-files 'anti-chronologically :sitemap-format-entry 'custom/sitemap-format-entry))) +(delete-directory "public" :recursive t) + (org-publish-all t) +(webfeeder-build + "rss.xml" + "./public/blog" + "https://lemurianmage.srht.site" + (cddr (delete "index.html" (directory-files "public/blog"))) ; no "." and ".." + :title "lemurblog" + :builder 'webfeeder-make-rss + :build-date 0) (message "Build done!") |
