summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <david@luevano.xyz>2022-04-16 15:37:06 -0600
committerDavid Luevano Alvarado <david@luevano.xyz>2022-04-16 15:37:06 -0600
commitf203d11cff37d6809396d0ea39bf53abe9bad182 (patch)
treee375bcbf1d3c78559f2be2fd2dc69016683d162a
parentc756ef2138eef03f3823e82a4ff5b2b7ddba65a1 (diff)
add default configuration to resources
-rw-r--r--src/pyssg/__main__.py3
-rw-r--r--src/pyssg/plt/default.ini14
2 files changed, 16 insertions, 1 deletions
diff --git a/src/pyssg/__main__.py b/src/pyssg/__main__.py
index 01dbe3c..9ed4d74 100644
--- a/src/pyssg/__main__.py
+++ b/src/pyssg/__main__.py
@@ -1,4 +1,5 @@
from .pyssg import main
-main()
+if __name__ == '__main__':
+ main()
diff --git a/src/pyssg/plt/default.ini b/src/pyssg/plt/default.ini
new file mode 100644
index 0000000..2700d28
--- /dev/null
+++ b/src/pyssg/plt/default.ini
@@ -0,0 +1,14 @@
+[dir_paths]
+src=src
+dst=dst
+plt=plt
+[urls]
+url=https://example.com
+static_url=https://static.example.com
+default_image_url=/images/default.png
+[formats]
+date_format=%%a, %%b %%d, %%Y @ %%H:%%M %%Z
+list_date_format=%%b %%d
+list_sep_date_format=%%B %%Y
+[info]
+title=Example site \ No newline at end of file