diff options
author | Sunaina Pai <sunainapai.in@gmail.com> | 2018-03-28 22:43:08 +0530 |
---|---|---|
committer | Sunaina Pai <sunainapai.in@gmail.com> | 2018-03-28 22:43:08 +0530 |
commit | b1e21ccffe470120f4fa776a5c337657dad9a206 (patch) | |
tree | dc7111d46926065280ab4d9828dc6616efcf8878 /makesite.py | |
parent | d35427d29ff246087a6ad385c84a51693a9a7848 (diff) |
Use placeholder for current year in copyright
Diffstat (limited to 'makesite.py')
-rwxr-xr-x | makesite.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/makesite.py b/makesite.py index 20a3f54..25744ea 100755 --- a/makesite.py +++ b/makesite.py @@ -33,6 +33,7 @@ import re import glob import sys import json +import datetime def fread(filename): @@ -163,6 +164,7 @@ def main(): 'subtitle': 'Lorem Ipsum', 'author': 'Admin', 'site_url': 'http://localhost:8000', + 'current_year': datetime.datetime.now().year } # If params.json exists, load it. |