From bb1e4faf894b1da14eee79ee41183a16fb1df922 Mon Sep 17 00:00:00 2001 From: Blaise Thompson Date: Mon, 5 Jul 2021 15:28:06 -0500 Subject: new footer --- build.py | 3 --- publicize.sh | 5 ++++- templates/footer.html | 6 ++++-- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/build.py b/build.py index 3b53963..13fbc73 100755 --- a/build.py +++ b/build.py @@ -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 @@
-

+

built {{ date }} -{{ "\xa0" * 36 }} +

CC0: no copyright +(source) +

-- cgit v1.2.3