feat: Add blog for new domains
All checks were successful
Build Docker / Build Image (push) Successful in 30s
All checks were successful
Build Docker / Build Image (push) Successful in 30s
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user