Index

joshstock.in / 328427c

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

Latest Commit

{#}TimeHashSubjectAuthor#(+)(-)GPG?
17715 Mar 2023 15:283105813Remove media handle from footerJosh Stockin102G

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

application/x-python725 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.FIGCAPTION(
23 hg.I(
24 f"Site last updated {datetime.datetime.now().strftime('%Y-%m-%d, %H:%M')}"
25 )
26 )
27 )
28 return footer
29