Skip to content

Instantly share code, notes, and snippets.

@adilsonfsantos
Created July 23, 2019 00:51
Show Gist options
  • Save adilsonfsantos/7f5ceab137f1633bf9bd9b1ca4f3c7c9 to your computer and use it in GitHub Desktop.
Save adilsonfsantos/7f5ceab137f1633bf9bd9b1ca4f3c7c9 to your computer and use it in GitHub Desktop.
Snippet navigation in jekyll
{%- for item in site.data.nav.pages -%}
<li class="{% if item.url == page.url %}active{% endif %}"><a href="{{ item.url }}">{{ item.title }}</a></li>
{%- endfor -%}
pages:
- title: Projetos
url: /
- title: Sobre
url: /sobre
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment