diff options
-rwxr-xr-x | build.py | 3 | ||||
-rwxr-xr-x | publicize.sh | 5 | ||||
-rw-r--r-- | templates/footer.html | 6 |
3 files changed, 8 insertions, 6 deletions
@@ -62,9 +62,6 @@ if not os.path.isdir(__here__ / "public"): os.mkdir(__here__ / "public") -shutil.copytree("posts", "public", dirs_exist_ok=True) - - template = env.get_template("index.html") with open(__here__ / "public" / "index.html", "w") as f: f.write(template.render(posts=posts, title="blog", date=date)) diff --git a/publicize.sh b/publicize.sh index 11d8d7d..4ae264e 100755 --- a/publicize.sh +++ b/publicize.sh @@ -1,3 +1,6 @@ +#!/bin/bash +cd "$(dirname "$0")" +git pull python3 build.py -scp -r ./public/* root@blaise.zone:/var/www/blog.blaise.zone/html/ +cp -r ./public/* /var/www/blog.blaise.zone/html/ diff --git a/templates/footer.html b/templates/footer.html index 3cc1a0e..10419e2 100644 --- a/templates/footer.html +++ b/templates/footer.html @@ -1,9 +1,11 @@ <hr> -<p> +<p style="display:inline;"> built {{ date }} -{{ "\xa0" * 36 }} +<div style="float:right;"> <a href="https://creativecommons.org/publicdomain/zero/1.0/">CC0</a>: no copyright +(<a href="http://git.blaise.zone/website/blog.git/">source</a>) +</div> </p> </body> |