feat: Add new now page
All checks were successful
Build Docker / BuildImage (push) Successful in 40s

This commit is contained in:
2024-06-06 21:00:12 +10:00
parent e40ec28509
commit 52dd703fa6
6 changed files with 159 additions and 7 deletions

View File

@@ -212,6 +212,9 @@ def now_path(path):
date = date.strftime('%A, %B %d, %Y')
except:
date = ""
if path.lower().replace('.html','') == 'template':
return render_template('404.html'), 404
# If file exists, load it
if os.path.isfile('templates/now/' + path):
@@ -221,6 +224,8 @@ def now_path(path):
return render_template('404.html'), 404
@app.route('/old')
@app.route('/old/')
@app.route('/now/old')
@app.route('/now/old/')
def now_old():