commit bd2313171e479ef1d01270c627971ab6b6926ffd
parent 40815fae43e32799f14ca16e7fadc252fd0dd3b3
Author: William Lindholm <william_lindholm@outlook.com>
Date: Tue, 22 Sep 2026 16:11:14 +0200
Add copyright label
Diffstat:
2 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/cv/index.html b/cv/index.html
@@ -129,9 +129,8 @@
</main>
<footer class="skip-print">
- <p>
- Press <kbd>Ctrl</kbd> + <kbd>P</kbd> to print or save this CV as a PDF. On macOS, use <kbd>⌘</kbd> + <kbd>P</kbd>.
- </p>
+ <p>Press <kbd>Ctrl</kbd> + <kbd>P</kbd> to print or save this CV as a PDF. On macOS, use <kbd>⌘</kbd> + <kbd>P</kbd>.</p>
+ <p>© {{ current_year }} William Lindholm</p>
</footer>
</body>
diff --git a/cv/main.py b/cv/main.py
@@ -10,7 +10,7 @@ app = Flask(__name__, static_folder=None, template_folder=".")
@app.get("/")
def resume():
- return render_template("index.html", duration=duration)
+ return render_template("index.html", duration=duration, current_year=date.today().year)
@app.get("/style.css")
@@ -46,7 +46,10 @@ def duration(start, end=None):
]
length = ", ".join(filter(None, parts))
- return Markup(f'<time datetime="{start:%Y-%m}">{start.year}</time> · {length}')
+ if end is None:
+ return Markup(f'<time datetime="{start:%Y-%m}">{start.strftime("%B")} {start.year} – Present · {length}')
+
+ return Markup(f'<time datetime="{start:%Y-%m}">{start.strftime("%B")} {start.year} – <time datetime="{finish:%Y-%m}">{finish.strftime("%B")} {finish.year}</time> · {length}')
if __name__ == "__main__":