diff options
author | David Luevano Alvarado <david@luevano.xyz> | 2022-04-16 15:37:06 -0600 |
---|---|---|
committer | David Luevano Alvarado <david@luevano.xyz> | 2022-04-16 15:37:06 -0600 |
commit | f203d11cff37d6809396d0ea39bf53abe9bad182 (patch) | |
tree | e375bcbf1d3c78559f2be2fd2dc69016683d162a /src | |
parent | c756ef2138eef03f3823e82a4ff5b2b7ddba65a1 (diff) |
add default configuration to resources
Diffstat (limited to 'src')
-rw-r--r-- | src/pyssg/__main__.py | 3 | ||||
-rw-r--r-- | src/pyssg/plt/default.ini | 14 |
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 |