Peng Guanwen
0b897ce7c7
Replace trim_{left, right} with trim_{start, end}
trim_{start, end} is introduced in rust 1.30.0 and
trim_{left, right} is deprecated since 1.33.0.
5 years ago
Vincent Prouillet
1e2dd9ce03
Update tera to v1 alpha
5 years ago
Nicolas Pochet
b65979fac7
Render the theme template files if present
* Change the behavior of the template rendering:
* Check if the template bare name is present
* Check if the template is part of a theme
* Fallback to defaults
* Change the behavior of the shortcode rendering:
* Call the template rendering function
* Prepend `__zola_builtins/` to most of the default elements in `ZOLA_TERA`
* Add a test to verify the presence and content of a `404.html` page
from a theme's template
5 years ago
Vincent Prouillet
5caf24f06c
Remove error-chain
Closes #576
5 years ago
Vincent Prouillet
b3004c69ef
Fix broken taxonomies pagination
Closes #533
6 years ago
Shotaro Yamada
692103bff4
Remove redundant clone
6 years ago
Vincent Prouillet
e2c3bb2ce2
Fix shortcodes <-> markdown indentation
6 years ago
Vincent Prouillet
b7ce4e59fb
rustfmt
6 years ago
Jonathan Watt
f1b6f3082e
Remove unmatchable rules from render_shortcodes
6 years ago
Vincent Prouillet
7ecdc47b91
Remove line trimming for shortcode bodies
Can't remember why it was doing that even
with the comment and the test added in the
commit still pass so...
Fix #462
6 years ago
Vincent Prouillet
0b0b4a86db
Update pest for shortcode parser
6 years ago
Vincent Prouillet
ee3f4dc511
Update to syntect 3
6 years ago
Christian Friedrich Coors
85529186e4
Fix some clippy warnings
6 years ago
Vincent Prouillet
4571b067ea
Fix ignored shortcode swallowing whitespace
Fix #383
6 years ago
Vincent Prouillet
e0291cec65
Add Swift, MiniZinc syntax and update the rest
Also fix tests
Close #367, #372
6 years ago
Vincent Prouillet
60a52fd2cc
Some intellij reformatting
6 years ago
Vincent Prouillet
d47ba4aff0
Rebasing + tweaks
6 years ago
Vojtech Kral
6662014e55
Add image resizing support #225
6 years ago
Vincent Prouillet
3eb571fdbf
Trim left every line of a shortcode to avoid the accidental markdown codeblock
6 years ago
Vincent Prouillet
d334b1cf46
More shortcode docs update
6 years ago
Vincent Prouillet
b120754862
Update shortcode parsing and docs
6 years ago
Vincent Prouillet
85e13483eb
Use the new shortcode parser
6 years ago
Vincent Prouillet
204f514c0e
WIP: new markdown rendering
6 years ago