summaryrefslogtreecommitdiff
path: root/source/aktuelles/blog.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'source/aktuelles/blog.html.erb')
-rw-r--r--source/aktuelles/blog.html.erb20
1 files changed, 20 insertions, 0 deletions
diff --git a/source/aktuelles/blog.html.erb b/source/aktuelles/blog.html.erb
new file mode 100644
index 0000000..3045c41
--- /dev/null
+++ b/source/aktuelles/blog.html.erb
@@ -0,0 +1,20 @@
+---
+pageable: true
+per_page: 10
+section: "aktuelles"
+---
+<% if paginate && num_pages > 1 %>
+ <p>Seite <%= page_number %> von <%= num_pages %></p>
+
+ <% if prev_page %>
+ <p><%= link_to 'Vorherige Seite', prev_page %></p>
+ <% end %>
+<% end %>
+
+<%= partial "article", collection: page_articles %>
+
+<% if paginate %>
+ <% if next_page %>
+ <p><%= link_to 'Nächste Seite', next_page %></p>
+ <% end %>
+<% end %>