Skip to content

Commit

Permalink
fix(nav): show all pages from content
Browse files Browse the repository at this point in the history
Later this will be subject for change, when dropdown menu for nested content will be introduced.
  • Loading branch information
dawidmachon committed Nov 21, 2021
1 parent 46e887a commit c98c457
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion themes/hold/index.twig
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
<div id="fh5co-page" itemscope itemtype="http://schema.org/Person">
<nav id="fh5co-nav" role="navigation">
<ul>
{% for page in pages(depthOffset=-1) if not page.hidden %} {# ? depthOffset=-1 need to be replaced with index for 'home' when dropdowns feature will be introduced. #}
{% for page in pages(depthOffset=-1, depth=null) if not page.hidden %} {# ? depthOffset=-1, depth=null need to be replaced with index for 'home' when dropdowns feature will be introduced. #}
<li class="animate-box fadeInUp animated {% if page.url == current_page.url %} fh5co-active {% endif %}"><a href="{{ page.url }}" class="transition">{{ page.title }}</a></li> {# TODO: Make DropDown for Nav nested pages. #}
{% endfor %}
</ul>
Expand Down

0 comments on commit c98c457

Please sign in to comment.