> > 2. how can one create "prettified" links, i.e. /features/ instead > > of /features.html ? Basically during the website generation for the file > > features.org a directory `features` needs to be created and the html > > file placed into `features/index.html` ... Is there a tutorial on how to > > do that? > > You make a wrapper around org-html-publish-to-html that creates folders > and from filename and save file as index in the folder. The wrapper > function is then used as the :publishing-function in > org-publish-project-alist. > > Something like this (untested). > > (lambda (plist filename pub-dir) > (let ((dir (make-directory (file-name-as-directory (file-name-base > filename)) > pub-dir))) > (org-latex-publish-to-html plist filename dir) > (rename-file (concat dir (file-name-base filename) ".html") > (concat dir "index.html")))) > > > You could also move around your source files before publishing via the > :preparation-function.
Thank you very much! Unfortunately I don't know lisp, so I have to learn it first to understand your solution... but now I have something to start with. I wish org html export will become a real static site generator, like jekyll, hugo, etc..