{% extends "base.html" %}
{% load markdown %}

      {% block header %}
        <h1 class="fw-light">About</h1>
        <p class="lead text-muted">{{ site_conf.about | markdown | safe }}</p>
      {% endblock %}

      {% block pagination %}
      {% if rolling_stock.has_other_pages %}
      <nav aria-label="Page navigation example">
        <ul class="pagination justify-content-center mt-4">
          {% if rolling_stock.has_previous %}
          <li class="page-item">
            <a class="page-link" href="{% url 'index' %}{{ rolling_stock.previous_page_number }}#rolling_stock" tabindex="-1">Previous</a>
          </li>
          {% else %}
          <li class="page-item disabled">
            <span class="page-link">Previous</span>
          </li>
          {% endif %}
          {% for i in rolling_stock.paginator.page_range %}
            {% if rolling_stock.number == i %}
            <li class="page-item active">
              <span class="page-link">{{ i }}</span></span>
            </li>
            {% else %}
            <li class="page-item"><a class="page-link" href="{% url 'index' %}{{ i }}#rolling-stock">{{ i }}</a></li>
            {% endif %}
          {% endfor %}
          {% if rolling_stock.has_next %}
          <li class="page-item">
            <a class="page-link" href="{% url 'index' %}{{ rolling_stock.next_page_number }}#rolling-stock" tabindex="-1">Next</a>
          </li>
          {% else %}
          <li class="page-item disabled">
            <span class="page-link">Next</span>
          </li>
          {% endif %}
        </ul>
      </nav>
      {% endif %}
      {% endblock %}
