{# ==========================================================================

   url_parameters()

   ==========================================================================

   Description:

   Builds pagination markup when given:

   parameters:   A dictionary of url parameters.

   ========================================================================== #}

{% macro url_parameters(parameters) %}
    {%- for name, value in parameters.iteritems() -%}
        {% if value and 'page' not in name -%}
            &{{ name }}={{ value }}
        {%- endif %}
    {%- endfor -%}
{% endmacro %}

{# ==========================================================================

   url_parameters()

   ==========================================================================

   Description:

   Builds pagination markup when given:

   parameters:   A dictionary of url parameters.

   ========================================================================== #}

{% macro url_parameters(parameters) %}
    {%- for key in parameters.keys() -%}
        {% if parameters.getlist(key) and 'page' not in key -%}
            {%- for value in parameters.getlist(key, []) -%}
                &{{ key }}={{ value }}
            {%- endfor -%}
        {%- endif %}
    {%- endfor -%}
{% endmacro %}

Fix bug that lost all but one category or tag parameter on pagination buttons
Fix bug that lost all but one category or tag parameter on pagination buttons
