From b0da6603c012280a33202836bb1e9a2456fbd054 Mon Sep 17 00:00:00 2001 From: Lars Henrik Mai Date: Tue, 8 Apr 2014 13:58:00 +0200 Subject: initialized blog extensions --- source/calendar.html.erb | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 source/calendar.html.erb (limited to 'source/calendar.html.erb') diff --git a/source/calendar.html.erb b/source/calendar.html.erb new file mode 100644 index 0000000..4cdfdf9 --- /dev/null +++ b/source/calendar.html.erb @@ -0,0 +1,33 @@ +--- +pageable: true +--- +

Archive for + <% case page_type + when 'day' %> + <%= Date.new(year, month, day).strftime('%b %e %Y') %> + <% when 'month' %> + <%= Date.new(year, month, 1).strftime('%b %Y') %> + <% when 'year' %> + <%= year %> + <% end %> +

+ +<% if paginate && num_pages > 1 %> +

Page <%= page_number %> of <%= num_pages %>

+ + <% if prev_page %> +

<%= link_to 'Previous page', prev_page %>

+ <% end %> +<% end %> + + + +<% if paginate %> + <% if next_page %> +

<%= link_to 'Next page', next_page %>

+ <% end %> +<% end %> -- cgit v1.2.1