Markup for: book module

Created on 29 April 2013, almost 12 years ago
Updated 1 May 2024, 12 months ago

Meta issue: #1980004: [meta] Creating Dream Markup β†’
Issue based on: [#book module]

Questions:

Why don't we move arrows from navigation to css pseudo classes ::before or ::after?
Why don't we give appropriate names to pager items?

Markup proposal:

{% for book_id, menu in book_menus %}
  <nav class="book-menu">
    {{ menu }}
  </nav>
{% endfor %}
{% if tree or has_links %}
  <nav class="book-navigation">
    {{ tree }}
    {% if has_links %}
      <h2 class="element-invisible">{{ 'Book Navigation'|t }}</h2>
      <ul class="book-pager">
      {% if prev_url %}
        <li class="book-page-previous">
          <a href="{{ prev_url }}" rel="prev" title="{{ 'Go to previous page'|t }}"> {{ prev_title }}</a>
        </li>
      {% endif %}
      {% if parent_url %}
        <li class="book-page-parent">
          <a href="{{ parent_url }}" title="{{ 'Go to parent page'|t }}">{{ 'Up'|t }}</a>
        </li>
      {% endif %}
      {% if next_url %}
        <li class="book-page-next">
          <a href="{{ next_url }}" rel="next" title="{{ 'Go to next page'|t }}">{{ next_title }}</a>
        </li>
      {% endif %}
    </ul>
    {% endif %}
  </nav>
{% endif %}
πŸ“Œ Task
Status

Closed: outdated

Version

11.0 πŸ”₯

Component
BookΒ  β†’

Last updated 2 months ago

  • Maintained by
  • πŸ‡ΊπŸ‡ΈUnited States @pwolanin
Created by

πŸ‡²πŸ‡©Moldova oresh

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024