authors.twig 606 B

1234567891011121314151617
  1. {% extends "index.twig" %}
  2. {% block content %}
  3. {% set astring = url_param('q','string') %}
  4. {% set count = aut_count[astring] %}
  5. {% if count == 1 %}
  6. <h4>{{astring}} wrote 1 post</h4>
  7. {% else %}
  8. <h4>{{astring}} wrote {{ count }} posts</h4>
  9. {% endif %}
  10. {% set paging_url_base = current_page.url ~ '?q=' ~ astring ~ '&' %}
  11. {% set paging_array = {} %}
  12. {% for page_id in aut_pages[astring]|slice(1)|split('#') %}
  13. {% set paging_array = paging_array|merge([pages[page_id]]) %}
  14. {% endfor %}
  15. {% include 'includes/paging.twig' %}
  16. {% endblock content %}