3 (setq org-html-doctype "html5")
4 (setq org-html-divs '((preamble "header" "top")
5 (content "main" "content")
6 (postamble "footer" "postamble"))
7 org-html-container-element "section")
9 (defun website-header (info)
11 (insert-file-contents "~/websites/stage.vanrenterghem.biz/html/navbar.html")
14 (defun website-footer (info)
16 (insert-file-contents "~/websites/stage.vanrenterghem.biz/html/footer.html")
19 (defun my-org-publish-sitemap-default-entry (entry style project)
20 "My format for site map ENTRY, as a string.
21 ENTRY is a file name. STYLE is the style of the sitemap.
22 PROJECT is the current project."
23 (cond ((not (directory-name-p entry))
24 (format "%s - [[file:%s][%s]]" ;;the date and filename are added after the entry
25 (format-time-string "%e %b %Y" (org-publish-find-date entry project))
27 (org-publish-find-title entry project)))
29 ;; Return only last subdir.
30 (file-name-nondirectory (directory-file-name entry)))
33 (setq org-publish-project-alist
35 :base-directory "~/websites/stage.vanrenterghem.biz/source/"
37 :publishing-directory "~/websites/stage.vanrenterghem.biz/target"
38 :publishing-function org-html-publish-to-html
39 :exclude "assets*" ;; regexp
43 :html-head-include-default-style nil
44 :html-head "<link href=\"/assets/styles/bootstrap-5.3.0/css/bootstrap.min.css\" rel=\"stylesheet\" />"
48 ;:sitemap-filename "~/websites/stage.vanrenterghem.biz/source/posts/sitemap.org"
49 :html-preamble website-header
50 :html-postamble website-footer
51 :sitemap-format-entry my-org-publish-sitemap-default-entry
52 :sitemap-sort-files anti-chronologically
56 :base-directory "~/websites/stage.vanrenterghem.biz/source/assets/"
59 :publishing-directory "~/websites/stage.vanrenterghem.biz/target/assets/"
60 :publishing-function org-publish-attachment)
62 ("website" :components ("orgfiles" "assets"))))