From f203d11cff37d6809396d0ea39bf53abe9bad182 Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado Date: Sat, 16 Apr 2022 15:37:06 -0600 Subject: add default configuration to resources --- src/pyssg/__main__.py | 3 ++- src/pyssg/plt/default.ini | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 src/pyssg/plt/default.ini 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 -- cgit v1.2.3-70-g09d2