all repos — website @ 805b34faf0bbdaf135e16072b8dd9153a24368ad

My website

themes/bear/templates/nav.html (view raw)

1
2
3
4
5
6
7
8
9
10
<a href="{{ config.base_url | safe }}">Home</a>
{%- if config.extra.main_menu %}
  {%- for item in config.extra.main_menu %}
    {%- if item.url is matching("https?://") %}
      <a href="{{ item.url | safe }}">{{ item.name }}</a>
    {%- else %}
      <a href="{{ get_url(path=item.url) }}">{{ item.name }}</a>
    {%- endif %}
  {%- endfor %}
{%- endif -%}