diff options
| author | Paul Buetow <paul@buetow.org> | 2024-10-01 21:34:38 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2024-10-01 21:34:38 +0300 |
| commit | 2e536e32d0217f906cf836e6cc4dee16d057fe36 (patch) | |
| tree | 4f3a002171401d63568ebf4705f8d4f470a17bc8 | |
| parent | e5432398ed998c09e76fa0da3613a9b1c6527057 (diff) | |
how to configure themes to README.md3.0.0
| -rw-r--r-- | README.md | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -128,6 +128,16 @@ For available styles, have a look here: [GNU Source-highlight Style Examples](ht You can configure the path to the source highlight CSS in the `gemtexter.conf` with `declare -xr SOURCE_HIGHLIGHT_CSS=/usr/share/source-highlight/sh_vampire.css`, for example. +### Themes + +Simply configure `HTML_THEME_DIR` in the `gemtexter.conf` file to the corresponding directory. For example: + +```bash +declare -xr HTML_THEME_DIR=./extras/html/themes/simple +``` + +To customize the theme or create your own, simply copy the theme directory and modify it as needed. + ### Templating Since version `2.0.0`, Gemtexter supports templating. A template file name must have the suffix `gmi.tpl`. A template must be put into the same directory as the Gemtext `.gmi` file to be generated. Gemtexter will generate a Gemtext file `index.gmi` from a given template `index.gmi.tpl`. All lines starting with `<< ` will be evaluated as a single line of Bash code and the output will be written into the resulting Gemtext file. A `<<<` and `>>>` encloses a multiline template. |
