diff options
author | Blaise Thompson <blaise@untzag.com> | 2020-05-10 18:44:29 -0500 |
---|---|---|
committer | Blaise Thompson <blaise@untzag.com> | 2020-05-10 18:44:29 -0500 |
commit | b43db726af5e87e7e483b5174d3d878203b4df6a (patch) | |
tree | 71247ff0943518bb8adc900674c0653d33058adc /build_html.py | |
parent | 0b2f52af28f3c0a3b925ab904cbe1715fb7b68ac (diff) |
update style
Diffstat (limited to 'build_html.py')
-rw-r--r-- | build_html.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/build_html.py b/build_html.py index 211eb94..fd577b8 100644 --- a/build_html.py +++ b/build_html.py @@ -48,6 +48,8 @@ with open(org_fp, "r") as org: continue if ":private:" in line: continue + if ":info:" in line: + continue events.append(Event(line)) @@ -61,7 +63,7 @@ if not os.path.isdir(__here__ / "public"): head = """<html> <head> - <meta charset="utf-8"> + <meta charset="utf-8" name="viewport" content="width=80ch"> <title>agenda.blaise.zone</title> <link rel="stylesheet" href="style.css"> </head> @@ -72,14 +74,16 @@ with open(__here__ / "public" / "index.html", "w") as html: html.write("<!DOCTYPE html>\n") html.write(head) html.write("<body>\n") - html.write("<h1>agenda.blaise.zone</h1>\n") + html.write("<h1><a href='http://blaise.zone'>blaise</a>-agenda</h1>\n") + html.write("<hr>") + html.write("<p>") html.write("Welcome to my public agenda!<br>\n") html.write("All timestamps are in 'blaise-local-time'.<br>\n") html.write("Thanks for stopping by! —Blaise\n") + html.write("</p>") # body monday = today - datetime.timedelta(days=today.weekday()) while True: - html.write("<hr>") year, week, day = monday.isocalendar() id = f"{year}-w{week}" html.write( |