Index

joshstock.in / 4b48536

Source for serving and static templating/compiling of https://joshstock.in.

Latest Commit

{#}TimeHashSubjectAuthor#(+)(-)GPG?
16822 Jan 2023 10:360f630e2Update footerJosh Stockin122G

Blob @ joshstock.in / site / generators / footer.py

application/x-python792 bytesdownload raw
1import datetime
2
3import htmlgenerator as hg
4
5
6def run(data=None):
7 """Build HTML footer"""
8 footer = hg.FOOTER(
9 hg.P(
10 hg.mark_safe(
11 f"joshstock.in © {datetime.date.today().year} Josh Stockin"
12 ),
13 ),
14 hg.P(
15 "[",
16 hg.A("GPG key", href="/josh.gpg"),
17 "] / ",
18 hg.A("josh@joshstock.in", href="mailto:josh@joshstock.in"),
19 " / ",
20 hg.A("stockin2@illinois.edu", href="mailto:stockin2@illinois.edu"),
21 " / ",
22 hg.CODE("joshuas3", hg.I("#9641")),
23 ),
24 hg.FIGCAPTION(
25 hg.I(
26 f"Site last updated {datetime.datetime.now().strftime('%Y-%m-%d, %H:%M')}"
27 )
28 )
29 )
30 return footer
31