diff options
-rw-r--r-- | layout/page.html | 2 | ||||
-rwxr-xr-x | makesite.py | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/layout/page.html b/layout/page.html index 16482e1..1912997 100644 --- a/layout/page.html +++ b/layout/page.html @@ -29,7 +29,7 @@ <footer> <section> -<p>© 2018 Lorem Ipsum</p> +<p>© {{ current_year }} Lorem Ipsum</p> <p> <a href="https://twitter.com/sunainapai">Twitter</a> <a href="https://github.com/sunainapai">GitHub</a> 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. |