File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 {% if footer_menu != None %}
66 < ul class ="unstyled ">
77 {% for item in footer_menu %}
8- < li > < a href ="{{item['link']}} "> {{item['title']}}</ a > </ li >
8+ {% if item['link'].startwith('http') or item['link'].startwith('/') %}
9+ < li > < a href ="{{ item['link'] }} "> {{item['title']}}</ a > </ li >
10+ {% else %}
11+ < li > < a href ="/{{ item['link'] }} "> {{item['title']}}</ a > </ li >
12+ {% endif %}
913 {% endfor %}
1014 </ ul >
1115 {% else %}
Original file line number Diff line number Diff line change 88 < nav class ="section navigation ">
99 < ul class ="nav nav-pills ">
1010 {% for item in header_menu %}
11- < li class ="{{ 'active' if (item['link'] == current_url) else '' }} "> < a href ="{{ item['link'] }} "> {{item['title']}}</ a > </ li >
11+ {% if item['link'].startwith('http') or item['link'].startwith('/') %}
12+ < li class ="{{ 'active' if (item['link'] == current_url) else '' }} "> < a href ="{{ item['link'] }} "> {{item['title']}}</ a > </ li >
13+ {% else %}
14+ < li class ="{{ 'active' if (item['link'] == current_url) else '' }} "> < a href ="/{{ item['link'] }} "> {{item['title']}}</ a > </ li >
15+ {% endif %}
1216 {% endfor %}
1317 </ ul >
1418 </ nav >
You can’t perform that action at this time.
0 commit comments