Sha256: 19809c917da36c3df27df020ff2e5ef1c32113eb7db4e4e835e936a50613fc7d

Contents?: true

Size: 586 Bytes

Versions: 2

Compression:

Stored size: 586 Bytes

Contents

---
menu:
  position: 1.6.0
  text: Pagination
---

%h1 Pagination

%table{ :style => 'border-collapse: separate; border-spacing: 0.5rem 0;' }
  %caption / is the default page and is the same as /page/3. Post 1 is the oldest, Post 9 is the newest.
  %thead
    %tr
      - ['/page/3', '/page/2', '/'].each do |th|
        %th= th
  %tfoot
    %tr
      %td past...
      %td 1 2 3
      %td ...future
  %tbody
    :ruby
      pages = [
        [1, 4, 7],
        [2, 5, 8],
        [3, 6, 9]
      ]
    - pages.each do |tr|
      %tr
        - tr.each do |td|
          %td Post #{td}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
staticpress-0.7.1 docs/content/docs/plugins/pagination.haml
staticpress-0.7.0 docs/content/docs/plugins/pagination.haml