Sam Ford
e804f907b2
Use Rust 2018 edition ( #885 )
4 years ago
Sam Ford
0a0b6a3ad4
Fix Clippy warnings ( #886 )
This addresses the following Clippy warnings:
* clippy::option_and_then_some
* clippy::useless_format
4 years ago
Vincent Prouillet
73ea4b3b16
Finish path collision & fix paginate_path when empty
Closes #866
4 years ago
Geobert Quach
3f166285de
Paginator total pages ( #829 )
* feat(pagination): Add `total_pages` in paginator object
* feat(pagination): Added doc for `total_pages`
* feat(pagination): Added test for `total_pages`
4 years ago
Vincent Prouillet
5844047435
Update slotmap
4 years ago
Vincent Prouillet
b396a1bc20
Add --drafts flag + rustfmt
4 years ago
Vincent Prouillet
6a7e955ab0
Add lang to get_taxonomy & get_taxonomy_url
4 years ago
Vincent Prouillet
eccb1e9986
Strip base_path from page/section paths
To ensure we will get the right `content`
directory.
Fix #629
5 years ago
Vincent Prouillet
9bc675f2a7
Fix colocated dates + rustfmt
Closes #607
5 years ago
Vincent Prouillet
1e2dd9ce03
Update tera to v1 alpha
5 years ago
Vincent Prouillet
5caf24f06c
Remove error-chain
Closes #576
5 years ago
Vincent Prouillet
19075191ff
Add translations to page/sections
5 years ago
Vincent Prouillet
0cf8e8ca1c
Fix pagers not being in sitemap
Closes #521
5 years ago
Vincent Prouillet
b3004c69ef
Fix broken taxonomies pagination
Closes #533
5 years ago
Vincent Prouillet
9c2eeaf1f7
Fewer string cloning for tpl names
5 years ago
Vincent Prouillet
b7ce4e59fb
rustfmt
5 years ago
Vincent Prouillet
dc94aa219b
Do not paginate drafts
Fix #495
5 years ago
Vincent Prouillet
957c6bed9d
Have a list of ancestors instead of only parent section
5 years ago
Vincent Prouillet
cdcebaea26
Cleanup of slotmap impl
Fix #205
5 years ago
Vincent Prouillet
396d237673
Use Tera render_with_borrowed
5 years ago
Vincent Prouillet
10aba20fe5
Slotmap refactor
5 years ago
Vincent Prouillet
e1aaed3c04
Remove paginator.pagers
5 years ago
Christian Friedrich Coors
85529186e4
Fix some clippy warnings
5 years ago
Vincent Prouillet
6903975202
Do not copy pages of sections when rendering taxonomies
5 years ago
Vincent Prouillet
ccaf36ee94
Avoid the use of enumerate in render_paginated
5 years ago
Vincent Prouillet
38b30eb144
Update deps and fix deprecrations
5 years ago
Vincent Prouillet
60a52fd2cc
Some intellij reformatting
5 years ago
Vincent Prouillet
18bef00671
Rename taxonomies paginate and error on unknown ones
5 years ago
Vincent Prouillet
1ae0702494
Custom taxonomies ( #330 )
5 years ago
Vincent Prouillet
9c0dd95bdb
Fix theme shortcode not being useable
Closes #272
6 years ago
Vincent Prouillet
bcf42a0c10
The wonders of serde default, take 2
6 years ago
Vincent Prouillet
c77cc9b170
First draft of theme support
6 years ago
Vincent Prouillet
3cb4641f1f
Remove sections for index page and clean up pager
6 years ago
Vincent Prouillet
c3b525745e
Convert project to a workspace
6 years ago
Vincent Prouillet
e76ee7ae4a
Pass section in context when rendering a page if there is one
6 years ago
Vincent Prouillet
2d949249c3
Add trailing slash to paths and permalinks. Fix #85
7 years ago
Vincent Prouillet
056bf55881
Add a FileInfo struct to hold some common data about the files
7 years ago
Vincent Prouillet
07f11755d6
Create a content mod
7 years ago
Vincent Prouillet
299c3c8b22
Separate Page and Section front matter into 2 structs
Fix #61
7 years ago
Vincent Prouillet
8711c9a3c0
Change Site::section and fix empty paginated sections
7 years ago
Vincent Prouillet
5bfe1c213b
Clippy run
7 years ago
Vincent Prouillet
a3318d4b56
Pagination
7 years ago