<ul class="pagination">
    {%  if kwd.get('tag')  %}
     {% set tag = "?tag={}".format(kwd.get('tag')) %}
    {% else %}
    {% set tag = '' %}
    {% end %}
    {% if kwd['page_home'] %}
    <li>
        <a class="{0}" href="/list/{{ cat_slug }}/1{{ tag }}" >{{ _('Home') }} </a>
    </li>
    {% end %}

    {% if kwd['page_pre'] %}
    <li>
        <a class="{0}" href="/list/{{ cat_slug }}/{{ page_current - 1 }}{{ tag }}  ">{{ _('Previous page') }}</a>
    </li>
    {% end %}
    {% set cur_num = page_cu