This website requires JavaScript.
Explore
Help
Sign In
emelie
/
zola
Watch
1
Star
0
Fork
You've already forked zola
0
Code
Issues
Pull requests
Releases
Wiki
Activity
72373bea9b
zola
/
test_site
/
content
/
posts
/
tutorials
/
programming
/
_index.md
9 lines
97 B
Markdown
Raw
Normal View
History
Unescape
Escape
Sections Parse _index.md files as sections and render them
2017-03-14 12:25:45 +00:00
+++
title = "Programming"
Remove `order` and add `heavier`/`later` This commit removes the option to sort by order and also removes `page.next` and `page.previous` variables. Instead, pages can be sorted by two methods `date` and `weight`. The Tera `reverse` filter will reverse either of those sorts, so the old `order` behavior can be achieved by using the `reverse` filter with `weight`. In place of the `previous`/`next` variables, this commit adds the `page.earlier`/`page.later` variables (which are set when the page is sorted by date) and the `page.heavier`/`page.lighter` variables (which are set when the page is sorted by weight). These variables have the advantage of not having confusing semantics when the `reverse` filter is used.
2018-07-28 02:20:20 +00:00
sort_by = "weight"
Allow sorting subsections by weight
2017-09-26 08:04:18 +00:00
weight = 1
Section extra -> SitemapEntry (#850)
2019-11-26 19:36:52 +00:00
[extra]
we_have_extra = "variables"
Sections Parse _index.md files as sections and render them
2017-03-14 12:25:45 +00:00
+++
Reference in a new issue
Copy permalink