# config.py - Vite's configuration script title = "icyphox" author = "" header = """<- back""" # gets the latest commit import subprocess def get_commit(): out = subprocess.run( ["git", "rev-parse", "--short", "HEAD"], stdout=subprocess.PIPE) commit = out.stdout.decode("utf-8").strip() return commit def get_big_commit(): out = subprocess.run( ["git", "rev-parse", "HEAD"], stdout=subprocess.PIPE ) big_commit = out.stdout.decode("utf-8").strip() return big_commit def get_commit_date(commit): out = subprocess.run( ["git", "show", "-s", "--format=%cd", "--date=short", commit], stdout=subprocess.PIPE) date = out.stdout.decode("utf-8").strip() return date commit = get_commit() big_commit = get_big_commit() date = get_commit_date(commit) # actually the sidebar footer = f"""

email
x@icyphox.sh

github
icyphox

mastodon
@x@icyphox.sh

pgp
0x8A93F96F78C5D4C4

last updated
{commit} on {date}

friends

Some of my friends and internet bros.

about

More about me and my work.

xxiivv webring
""" template = 'text.html' # default is index.html pre_build = [['bin/openring.py', '-j'], 'bin/update_index.py'] post_build = ['bin/rss.py', 'bin/plaintext.sh']