Skip to content

Commit 0ecd9ad

Browse files
authored
fix: navigation urls and nav-current class (#701)
* feat: included navigation items to header * fix: navigation urls and nav-current class
1 parent a6e8689 commit 0ecd9ad

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

app.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
from render_engine import Site, Page
22

33
navigation = [
4-
{"text": "Home", "url": "/", "fa": "fa fa-home fa-fw"},
5-
{"text": "Blog", "url": "/blog/", "fa": "fa fa-newspaper fa-fw"},
6-
{"text": "About Us", "url": "/about/", "fa": "fa fa-info-circle fa-fw"},
7-
{"text": "Events", "url": "/events/", "fa": "fa fa-calendar fa-fw"},
8-
{"text": "Community", "url": "/community/", "fa": "fa fa-users fa-fw"},
9-
{"text": "Support Us", "url": "/support/", "fa": "fa-solid fa-money-check-dollar"},
4+
{"text": "Home", "url": "/index.html", "fa": "fa fa-home fa-fw"},
5+
{"text": "Blog", "url": "/blog.html", "fa": "fa fa-newspaper fa-fw"},
6+
{"text": "About Us", "url": "/about.html", "fa": "fa fa-info-circle fa-fw"},
7+
{"text": "Events", "url": "/events.html", "fa": "fa fa-calendar fa-fw"},
8+
{"text": "Community", "url": "/community.html", "fa": "fa fa-users fa-fw"},
9+
{"text": "Support Us", "url": "/support.html", "fa": "fa-solid fa-money-check-dollar"},
1010
]
1111

1212
app = Site()
@@ -18,7 +18,6 @@
1818
@app.page
1919
class Index(Page):
2020
template = "index.html"
21-
current = "nav-current"
2221
content_path = "index.html"
2322

2423

0 commit comments

Comments
 (0)