Add favicon

Closes: #69
This commit is contained in:
Edward Betts 2023-11-13 08:31:27 +00:00
parent 77d2fef43a
commit 3629e91d62
2 changed files with 9 additions and 0 deletions

View file

@ -53,5 +53,13 @@ async def index() -> str:
return flask.render_template("index.html", today=now.date(), **data)
@app.route("/icon/office-calendar.png")
def icon() -> flask.Response:
"""Favicon."""
return flask.send_file(
"/usr/share/icons/elementary-xfce/apps/128/office-calendar.png"
)
if __name__ == "__main__":
app.run(host="0.0.0.0")