I am using org mode to write my personnal website. I use the workflow described in the documentation (cf. https://orgmode.org/worg/org-tutorials/org-publish-html-tutorial.html) and I therefore have a
converter.el file consisting, as in the link given above, of the definition of
org-publish-project-alist with the notes and static components. I evaluate the whole buffer and run
org-publish-project "org" everytime I want to export my files to HTML.
However, I use my own CSS files to style my webpage. For the moment, my files all have a variant of
#+HTML_HEAD: <link rel="stylesheet" href="./css/style.css"/> in their first lines. This is totally functionnal and gives the expected graphical result as it allows me to use my own options.
#+STYLE: ... is great too.
However, what I'm looking for is the following : I would like to have simple .org files with only the markup part and a unique "switch file" specifying for each of the .org file what style should be assigned, or more generally what are its options. This way, I would have a total separation between my writings (the .org files) and the configuration (this "switch file" plus the CSS files). I guess this file would have some kind of switch-loop structure (hence its name here) and should be used in
convert.el, but I have no idea how to code it.
Anyone have any idea how to program it ? I've tried myself but I'm not really good at elisp. I've also searched the web for similar questions, but all the examples I've found always specify the style in the preamble of .org files... Any advice is welcome !