Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion _layouts/_includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ <h1 class="site-title"><a class="logo-text" href="/index.html"><img src="{{ 'ass
{% set nav_lang = lang %}
{% endif %}
<li class="menu-item {{ current }}" role="menuitem">
<a class="{{ current }}" href="{{ nav_lang }}{{ item.url }}"> <i class="{{ item.fa }}" aria-hidden="true"></i>&nbsp;{{ t.nav[forloop.index0] }} </a>
<a class="{{ current }}" href="{{ nav_lang }}{{ item.url }}"> <i class="{{ item.fa }}" aria-hidden="true"></i>&nbsp;{{ item.text }} </a>
</li>
{% endfor %}
{% if locales | length > 1 %}
Expand Down
12 changes: 11 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
from render_engine import Site, Page

navigation = [
{"text": "Home", "url": "/", "fa": "fa fa-home fa-fw"},
{"text": "Blog", "url": "/blog/", "fa": "fa fa-newspaper fa-fw"},
{"text": "About Us", "url": "/about/", "fa": "fa fa-info-circle fa-fw"},
{"text": "Events", "url": "/events/", "fa": "fa fa-calendar fa-fw"},
{"text": "Community", "url": "/community/", "fa": "fa fa-users fa-fw"},
{"text": "Support Us", "url": "/support/", "fa": "fa-solid fa-money-check-dollar"},
]

app = Site()
app.template_path = "_layouts"
app.static_paths.add("assets")
app.site_vars["locales"] = ["en"]

app.site_vars["navigation"] = navigation

@app.page
class Index(Page):
template = "index.html"
current = "nav-current"
content_path = "index.html"