Create basic template for site with working menu

This commit is contained in:
Riley Wong
2024-02-19 22:52:14 -05:00
parent f489d06b90
commit e118ff3ede
5 changed files with 20 additions and 13 deletions

View File

@ -3,15 +3,10 @@
{% if menu %}
<nav class="site-navigation" role="navigation">
<ul>
<li>
<a href="{{ '/' | prepend: site.baseurl }}">
Home
</a>
</li>
{% for item in site.data.menu %}
<li {% if page.url == item.url %}class="active"{% endif %}>
{% if item.url contains 'http' %}
<a href="{{ item.url }}">
<a href="{{ item.url }}" target=_"blank" rel="noopener noreferrer">
{{ item.title }}
</a>
{% else %}
@ -23,4 +18,4 @@
{% endfor %}
</ul>
</nav>
{% endif %}
{% endif %}