summaryrefslogtreecommitdiff
path: root/src/pyssg/plt/default.yaml
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <david@luevano.xyz>2023-08-22 01:05:45 -0600
committerDavid Luevano Alvarado <david@luevano.xyz>2023-08-22 01:05:45 -0600
commit4bcc2029c25cb5b640eff5ea59ab020da6a42e2b (patch)
tree3161603e6c55564b69f99f939413be4b6b9d177d /src/pyssg/plt/default.yaml
parent19b23dd2ba0dfc97ed5bbfba02eaeeb0dca88919 (diff)
refactor: simplify config parsing and init
got rid of all the overengineered configuration parsing, everything is more simple and the error handling is left to the user as it would only mean checking their configuration based on the error message
Diffstat (limited to 'src/pyssg/plt/default.yaml')
-rw-r--r--src/pyssg/plt/default.yaml28
1 files changed, 16 insertions, 12 deletions
diff --git a/src/pyssg/plt/default.yaml b/src/pyssg/plt/default.yaml
index ca2f7ad..b458b75 100644
--- a/src/pyssg/plt/default.yaml
+++ b/src/pyssg/plt/default.yaml
@@ -1,23 +1,27 @@
%YAML 1.2
---
-define: &root "$HOME/pyssg/site_example/"
+define: &root "./"
title: "Example site"
path:
src: !join [*root, "src"]
dst: !join [*root, "dst"]
plt: !join [*root, "plt"]
- db: !join [*root, ".files"]
+ db: !join [*root, "db"]
url:
- main: "https://example.com"
+ base: "https://example.com"
fmt:
date: "%a, %b %d, %Y @ %H:%M %Z"
-dirs:
- /:
- cfg:
- plt: "page.html"
- tags: False
- index: False
- rss: False
- sitemap: False
-... \ No newline at end of file
+ rss_date: "%a, %d %b %Y %H:%M:%S GMT"
+ sitemap_date: "%Y-%m-%d"
+info:
+ version: "0.0.0"
+...
+---
+dir: "/"
+plt: "page.html"
+tags: False
+index: False
+rss: False
+sitemap: False
+...