feat: Add blog for new domains
All checks were successful
Build Docker / Build Image (push) Successful in 30s

This commit is contained in:
2024-02-20 15:41:32 +11:00
parent f5f4addd74
commit 8e31915615
8 changed files with 143 additions and 0 deletions

View File

@@ -386,6 +386,9 @@ def catch_all(path):
# Try with .html
if os.path.isfile('templates/' + path + '.html'):
return render_template(path + '.html', year=year)
if os.path.isfile('templates/' + path.strip('/') + '.html'):
return render_template(path.strip('/') + '.html', year=year)
return render_template('404.html'), 404