X-Git-Url: http://git.vanrenterghem.biz/www2.vanrenterghem.biz.git/blobdiff_plain/6f619da7c591593af4470c8e1700f09e4c2b2dd3..42b72788cacc9411404bddc5498b6ed7b9e62f3e:/maak-website.el diff --git a/maak-website.el b/maak-website.el index 10f2e6a..c93f1cc 100644 --- a/maak-website.el +++ b/maak-website.el @@ -1,6 +1,12 @@ (require 'cl-lib) (require 'org) (require 'ox-publish) +(add-to-list 'load-path "~/.emacs.d/elpa/ox-rss-20230408.231") +(add-to-list 'load-path "~/.emacs.d/elpa/mustache-20230713.514") +(add-to-list 'load-path "~/.emacs.d/elpa/s-20220902.1511") +(add-to-list 'load-path "~/.emacs.d/elpa/dash-20240510.1327") +(add-to-list 'load-path "~/.emacs.d/elpa/f-20240308.906 " ) +(add-to-list 'load-path "~/.emacs.d/elpa/htmlize-20240527.1456") (require 'ox-rss) (load "~/.emacs.d/lisp/mustache-html.el") @@ -9,7 +15,7 @@ (setq org-html-htmlize-output-type 'css) ; default: 'inline-css (setq org-time-stamp-custom-formats '("%A %e %B %Y" . "%A %e %B %Y at %H:%M")) (setq org-display-custom-times t) -(setq org-html-container-element "section") ;; TODO - check +(setq org-html-container-element "div") ;; TODO - check (setq my-blog-base-folder "~/websites/stage.vanrenterghem.biz") (setq my-blog-source-folder "~/websites/stage.vanrenterghem.biz/source") (setq my-blog-target-folder "~/websites/stage.vanrenterghem.biz/target") @@ -161,10 +167,10 @@ Either the section between #+BEGIN_PREVIEW and +#END_PREVIEW is used, or the fir (insert "#+END_export\n") (insert preview) ;(insert (concat "#+INCLUDE: \"" relpath "\" :only-contents t :lines \"1-10\"\n")) - (insert "\n") + (insert "\n") (insert (concat "[[file:" relpath "][Read More...]]\n")) (insert "#+BEGIN_export html\n") - (insert "<\/section>\n") + (insert " \n") (insert "#+END_export\n") )) ;; kill the first hrule to make this look OK