Skip to content

Commit

Permalink
cleaned up navbar
Browse files Browse the repository at this point in the history
  • Loading branch information
ranand2445 committed Dec 13, 2021
1 parent 9d707ea commit a99fd04
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def aboutus():

@app.route('/page1/')
def page1():
return render_template("page1.html")
return render_template("music.html")

@app.route('/page2/')
def page2():
Expand Down
5 changes: 1 addition & 4 deletions templates/layouts/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,8 @@
<div class="navbar-nav">
<!-- url_for is a Jinja2 pre-processor that finds route from function name (def) -->
<a class="nav-link" href={{ url_for('index') }}>Home</a>
<a class="nav-link" href={{ url_for('kangaroos') }}>Kangaroos</a>
<a class="nav-link" href={{ url_for('walruses') }}>Walruses</a>
<a class="nav-link" href={{ url_for('hawkers') }}>Hawkers</a>

<!-- stub is shown using the name of the route -->
<a class="nav-link" href="/stub">Stub</a>


<li class="nav-item dropdown">
Expand Down
File renamed without changes.

0 comments on commit a99fd04

Please sign in to comment.