Ошибка 404 подкачки Docpad

Подскажите, почему перестал работать пейджинг. Вернее пейджинг работает, но выдает 404 страницу.

Пример: altyncev.ru/posts

Конфигурация и файл сообщений в моем репозитории.

Глобальные изменения не вносятся.

Сообщения:

<% posts = @getCollection('posts') %>
<% for i in [@[email protected]]: %>
    <% document = posts.at(i).toJSON() %>
    <article class="post">
        <p class="posts_date"><%= @formatDate(document.date) %></p>
        <a href="<%= document.url %>"><h3><%= document.title %></h3></a>
        <div class="post-content"><%- @getCuttedContent(String(document.contentRenderedWithoutLayouts)) %></div>
        <% if @hasReadMore(String(document.contentRenderedWithoutLayouts)): %>
        <div class="read_more"><a href="<%= document.url %>"><strong>Читать далее &rarr;</strong></a></div>
        <% end %>
    </article>
<% end %>

<div class="pagination">
    <ul>
        <% if !@getDocument().hasPrevPage(): %>
            <li class="disabled"><span>«</span></li>
        <% else: %>
            <li><a href="<%= @getDocument().getPrevPage() %>">«</a></li>
        <% end %>
        <% for num in [[email protected]]: %>
            <% if @document.page.number == num: %>
                <li class="active"><span><%= num %></span></li>
            <% else: %>
                <li><a href="<%= @getDocument().getPagedUrl(num) %>"><%= num %></a></li>
            <% end %>
        <% end %>
        <% if !@getDocument().hasNextPage(): %>
            <li class="disabled"><span>»</span></li>
        <% else: %>
            <li><a href="<%= @getDocument().getNextPage() %>">»</a></li>
        <% end %>
    </ul>
</div>

person npofopr    schedule 28.05.2013    source источник


Ответы (1)


Этот плагин DocPad может быть скрытым способом сделать это: https://github.com/docpad/docpad-plugin-paged

person Mikeumus    schedule 27.06.2013