Is there a simple way to add something like the {Back to Worg's index} to every .org page in a directory which I plan to publish with org-publish-project-alist? Is this accomplished with a #+ tag, or some definition in the .css file?
Is there a simple way to add something like the {Back to Worg’s index}
Share
I looked at how they did it on Worg, and it doesn’t look like CSS.
There are a few ways you might be able to do so.
Create a generic file that only includes the details you want in each file. For example:
Then use
#+include: <filename>at the location in your file where you want the line. (See Include Files)Alternately you could define a macro in a setupfile (See In-Buffer Settings) that is the definition of the link (or multiple link choices)
In both cases it is worth noting that the relative paths are based on the exported file. So a
[[../index.org]]will always point to the index.org file in the parent directory, no matter where the setupfile is.