]> git.r.bdr.sh - rbdr/blog/blobdiff - README.md
Use modules, use XDG dirs
[rbdr/blog] / README.md
index a598cb068d40535e103a19f080e11dc2cce937c3..2765c97d176416028dc3818d4297d6c8ba51585f 100644 (file)
--- a/README.md
+++ b/README.md
@@ -75,10 +75,15 @@ blog --sync-down
 Updating the `BLOG_MAX_POSTS` environment variable sets the number of posts
 that will be kept.
 
-### Overriding Templates
+### Overriding Configuration Directory
 
-You can set the `BLOG_TEMPLATES_DIRECTORY` to any directory you want.
-The tool will expect a `feed.xml`, `index.html`, and `index.txt` files.
+You can set the `BLOG_CONFIG_DIRECTORY` to any directory you want. This
+defaults to `$XDG_CONFIG_HOME/blog/` and is used to store the blog remote
+config, static files, and template
+
+The tool will expect a `feed.xml`, `index.html`, and `index.txt` files in the
+`templates` directory inside the config directory. If they're not found it will
+default to the included tepmlates.
 
 These templates are then parsed with [dot][dot] and exposes the following
 variables:
@@ -94,22 +99,16 @@ Post
  +html: String      // The parsed html generated from the gemini.
 ```
 
-The default is the `templates` directory inside the root of the `blog`
-module directory.
-
 ### Overriding the location of posts.
 
-Setting `BLOG_POSTS_DIRECTORY` will update where the posts are saved when
-added. The default is the `.posts` directory inside the root of the
-`blog` module directory.
+Setting `BLOG_DATA_DIRECTORY` will update where the posts and archive are saved
+when added. The default is the `$XDG_DATA_HOME/blog`.
 
-### Overriding the location of static files.
+### Overriding the location of generated files.
 
-Setting `BLOG_STATIC_DIRECTORY` will update where static files are read
-from. This is also where the generated blog will be placed.
+Setting `BLOG_OUTPUT_DIRECTORY` will update where generated files are placed.
 
-The default is the `static` directory inside the root of the `blog` module
-directory.
+The default is `$XDG_CACHE_HOME/blog`.
 
 This directory should also contain files referenced in the templates, like
 `css`, `js` or `images`.