jemdoc – html changes
jemdoc has a built-in default configuration. This configuration includes the particular html tags used when producing html. If you wish to adjust the html that jemdoc produces, you can provide a configuration file to override the built-in defaults.
Example html change
Suppose you wanted to add Google Analytics tracking to your website. That requires adding a short section of html before the </body> tag.
First, find out which block needs to be changed by using
This prints the default html configuration. From this, the relevant configuration block (the one which includes the </body> tag) has a title [bodyend], and looks like
[bodyend] </body> </html>
Create a new file mysite.conf, say, and put a new [bodyend] block inside it. The new file looks like this:
Include your new configuration file, with the -c option (more details here):
jemdoc -c mysite.conf index.jemdoc
This will pull in the new [bodyend] block from mysite.conf, but otherwise work as before.