To remind me how this works, here is the basic setup of the blog:
- I have a directory called web which contains a Lisp script called
org-publish.el and has subdirectories:
- aux, containing auxiliary files like style.css
- html, containing the html output produced by org
- org, containing org source files
- In particular, web/org contains a file called index.org which is an
org file containing summaries of all my posts as top-level headings,
each linked to the full article (another org file). This file looks
something like the following (the dots at the beginning of lines are
there to stop this bit from compiling):
. @ title Blog . . * New blog :blog:org:emacs: . . [2017-09-12 Tue] . . I've decided that I don't like my old blog and I'm setting up a . new blog using org-mode. . . Read on to find out how.
- Open up index.org in Emacs.
- Load the file org-publish, by typing
ALT-x load-file web/org-publish.el
- Edit index.org and the main file for the given blog article by
adding a new heading above the others, together with relevant tags
and a timestamp (using the command CTRL-c !) and writing the blog
- Publish by typing:
- This generates the HTML files which I can then upload via ftp.
The following sites were useful in helping me to figure out what I was doing:
- tag-searching (I should be able to create pages associated to different tags just using org-mode, though I may also need to use some background bash scripts if I can't figure out how to do this).
- tikz figures (doesn't work with MathJax at the moment, but maybe this can be solved within org-mode).