summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlaise Thompson <blaise@untzag.com>2021-07-05 15:28:06 -0500
committerBlaise Thompson <blaise@untzag.com>2021-07-05 15:28:06 -0500
commitbb1e4faf894b1da14eee79ee41183a16fb1df922 (patch)
tree2801dfecd01c2018c5a729cd7fd2e6a0c1b3e1e5
parentac9cb28d852c750b251359397a2c361d3cf7176a (diff)
new footer
-rwxr-xr-xbuild.py3
-rwxr-xr-xpublicize.sh5
-rw-r--r--templates/footer.html6
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 @@
<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>