From 30c699f96429598b9ff88103971ccf689e163799 Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado Date: Mon, 17 May 2021 14:37:31 -0600 Subject: fix required base url and tag header substitution --- src/pyssg/builder.py | 1 - src/pyssg/pyssg.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/pyssg/builder.py b/src/pyssg/builder.py index 2ba1b6c..b2ff63c 100644 --- a/src/pyssg/builder.py +++ b/src/pyssg/builder.py @@ -238,7 +238,6 @@ class HTMLBuilder: # tag header tag_url: str = f'{self.base_url}/tag/@{tag}.html' t.tags.header = t.tags.header.replace('$$NAME', tag) - t.tags.header = t.tags.header.replace('$$URL', tag_url) with open(os.path.join(self.dst, f'tag/@{tag}.html'), 'w') as f: f.write(t.header) diff --git a/src/pyssg/pyssg.py b/src/pyssg/pyssg.py index 3f8cb8d..3cda0bc 100644 --- a/src/pyssg/pyssg.py +++ b/src/pyssg/pyssg.py @@ -21,7 +21,7 @@ def get_options() -> Namespace: help='''dst directory; generated (and transfered html) files; defaults to 'dst' ''') parser.add_argument('-u', '--url', - required=True, + default='', type=str, help='''base url without trailing slash''') parser.add_argument('-i', '--init', -- cgit v1.2.3-70-g09d2