diff options
Diffstat (limited to 'src/pyssg/configuration.py')
-rw-r--r-- | src/pyssg/configuration.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/pyssg/configuration.py b/src/pyssg/configuration.py index 5f73c23..8ee592e 100644 --- a/src/pyssg/configuration.py +++ b/src/pyssg/configuration.py @@ -8,6 +8,7 @@ class Configuration: self.src: str = None self.dst: str = None self.base_url: str = None + self.title: str = None self.dformat: str = None self.l_dformat: str = None self.lsep_dformat: str = None @@ -48,6 +49,10 @@ class Configuration: except KeyError: pass try: + self.title = opts['TITLE'] + except KeyError: pass + + try: self.dformat = opts['DATE_FORMAT'] except KeyError: pass @@ -78,6 +83,9 @@ class Configuration: if self.base_url is None: self.base_url = opts['url'] + if self.title is None: + self.title = opts['title'] + if self.dformat is None: self.dformat = opts['date_format'] |