Change content structure
In order to be able to create simple pages, the structure has been redesigned. All blog posts are in their separate section. The sacrifice for this is that pagination of posts does not work on index. This could have been fixed with `transparent=true` in the posts section, but index would then paginate all other pages as well (for instance about.md) and include them with the other posts. A new macro `posts_latest` has been implemented to print last n posts as specified in `config.toml`.master
parent
7a6a42d617
commit
62eec7be80
@ -0,0 +1,4 @@
|
||||
+++
|
||||
title = "About"
|
||||
+++
|
||||
|
@ -1,5 +0,0 @@
|
||||
+++
|
||||
title = "About"
|
||||
template = "section.html"
|
||||
+++
|
||||
|
@ -0,0 +1,3 @@
|
||||
+++
|
||||
+++
|
||||
|
@ -0,0 +1,5 @@
|
||||
+++
|
||||
orger_by = "date"
|
||||
paginate_by = 5
|
||||
+++
|
||||
|
Loading…
Reference in New Issue