File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ <h1 class="site-title"><a class="logo-text" href="/index.html"><img src="{{ 'ass
14
14
{% set nav_lang = lang %}
15
15
{% endif %}
16
16
< li class ="menu-item {{ current }} " role ="menuitem ">
17
- < a class ="{{ current }} " href ="{{ nav_lang }}{{ item.url }} "> < i class ="{{ item.fa }} " aria-hidden ="true "> </ i > {{ t.nav[forloop.index0] }} </ a >
17
+ < a class ="{{ current }} " href ="{{ nav_lang }}{{ item.url }} "> < i class ="{{ item.fa }} " aria-hidden ="true "> </ i > {{ item.text }} </ a >
18
18
</ li >
19
19
{% endfor %}
20
20
{% if locales | length > 1 %}
Original file line number Diff line number Diff line change 1
1
from render_engine import Site , Page
2
2
3
+ 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" },
10
+ ]
11
+
3
12
app = Site ()
4
13
app .template_path = "_layouts"
5
14
app .static_paths .add ("assets" )
6
15
app .site_vars ["locales" ] = ["en" ]
7
-
16
+ app . site_vars [ "navigation" ] = navigation
8
17
9
18
@app .page
10
19
class Index (Page ):
11
20
template = "index.html"
21
+ current = "nav-current"
12
22
content_path = "index.html"
You can’t perform that action at this time.
0 commit comments