Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancing navbar #394

Closed
sylhare opened this issue Jul 27, 2023 · 2 comments
Closed

Enhancing navbar #394

sylhare opened this issue Jul 27, 2023 · 2 comments

Comments

@sylhare
Copy link
Owner

sylhare commented Jul 27, 2023

Seems like there are some area where the navbar can be enhanced:

@sylhare
Copy link
Owner Author

sylhare commented Aug 10, 2023

From #359

{% for page in site.pages %}
    {% unless page.title == null or page.hide or name_page contains page.title %}
    <li class="separator"> | </li>
    <li>
        <a class="clear" aria-label="{{ page.title }}" title="{{ page.title }}" href="{{ page.url | relative_url }}">
            {% if page.icon %} <i class="fas {{ page.icon }}" aria-hidden="true"></i>{% endif%}
            <span class="menu-label {%if page.icon %}menu-label-with-icon{% endif%}">{{ page.title }}</span>
        </a>
    </li>
    {% endunless %}
    {% assign name_page = page.title | append: name_page %}
{% endfor %}

@sylhare
Copy link
Owner Author

sylhare commented Aug 10, 2023

From #392

The navbar can be defined in _config.yml so you can have any order of items, regardless their filenames

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant