mirror of
https://github.com/meineerde/holgerjust.de.git
synced 2025-10-17 17:01:01 +00:00
Introduce yearly archive pages
This commit is contained in:
parent
6077ee1227
commit
5570c29923
@ -60,7 +60,8 @@ activate :blog do |blog|
|
|||||||
blog.day_link = "{year}/{month}/{day}.html"
|
blog.day_link = "{year}/{month}/{day}.html"
|
||||||
blog.default_extension = ".md.erb"
|
blog.default_extension = ".md.erb"
|
||||||
|
|
||||||
blog.tag_template = "tag.html"
|
blog.tag_template = "list.html"
|
||||||
|
blog.year_template = "list.html"
|
||||||
# blog.calendar_template = "calendar.html"
|
# blog.calendar_template = "calendar.html"
|
||||||
|
|
||||||
# Enable pagination
|
# Enable pagination
|
||||||
|
|||||||
@ -13,7 +13,13 @@ cover_license: '[Cover Image](https://unsplash.com/photos/2ShvY8Lf6l0) by [Lukas
|
|||||||
%span.word Menu
|
%span.word Menu
|
||||||
.vertical
|
.vertical
|
||||||
.main-header-content.inner
|
.main-header-content.inner
|
||||||
%h1.page-title= tagname
|
%h1.page-title
|
||||||
|
- case page_type
|
||||||
|
- when 'tag'
|
||||||
|
= tagname
|
||||||
|
- when 'year'
|
||||||
|
Archive for
|
||||||
|
= year
|
||||||
%h2.page-description= pluralize(page_articles.count, 'post')
|
%h2.page-description= pluralize(page_articles.count, 'post')
|
||||||
|
|
||||||
%main#content.content{role: :main}
|
%main#content.content{role: :main}
|
||||||
Loading…
x
Reference in New Issue
Block a user