navbar current decorator

This commit is contained in:
2024-08-05 09:09:51 -07:00
parent 82baefb3d2
commit 2ba3fe0a7e
8 changed files with 54 additions and 59 deletions

View File

@@ -48,7 +48,7 @@ def explore():
next_url = url_for('explore', page=posts.next_num) if posts.has_next else None
prev_url = url_for('explore', page=posts.prev_num) if posts.has_prev else None
return render_template('index.html', title='Explore', posts=posts.items, next_url=next_url, prev_url=prev_url)
return render_template('explore.html', title='Explore', posts=posts.items, next_url=next_url, prev_url=prev_url)
@app.route('/login', methods=['GET', 'POST'])
def login():