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

Change pagination items loop #190

Open
Duwid opened this issue Nov 25, 2021 · 0 comments
Open

Change pagination items loop #190

Duwid opened this issue Nov 25, 2021 · 0 comments
Assignees

Comments

@Duwid
Copy link
Contributor

Duwid commented Nov 25, 2021

Is your feature request related to a problem? Please describe.
Pagination is not working with Drupal's pager items schema.

Describe the solution you'd like

    {% for item in items %}
      <li class="font-sans px-4 py-4 lg:p-2 lg:px-4 text-black">
        <a class="text-md {% if (item.in_active_trail) %}is-active{% endif %}"
           href="{{ item.link }}">{{ item.title }}</a>
      </li>
    {% endfor %}

should be:

    {% for title, item in items %}
      <li class="font-sans px-4 py-4 lg:p-2 lg:px-4 text-black">
        <a class="text-md {% if (item.in_active_trail) %}is-active{% endif %}"
           href="{{ item.href }}">{{ title }}</a>
      </li>
    {% endfor %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants