Tjeu Kayim
6149fd17e1
Skip anchor checking for URL with prefix in config ( #812 )
* cargo fmt & clippy
* Skip anchor checking for URL with prefix in config
4 years ago
zdenek-crha
5aadd3d4f2
Fix crash of trans() function called on absent translation key ( #793 )
Add method get_translation(lang, key) into Config struct that retrieves
translated term from parsed configuration or error when either
desired language or key is missing.
Use the new method in Trans struct implementing global Tera function
trans().
Add unit test to cover both happy and error path for translation
retrieval in both config and templates crate.
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
0aee33f9c5
Add very copy/pasty impl of anchor checking
5 years ago
Vincent Prouillet
cb962f7a64
Add aliases to sections
5 years ago
Stuart Small
12d2576fba
Fix for #632 - add ability to get asset image dimensions ( #670 )
5 years ago
Vincent Prouillet
ec61a57841
Use @/ for internal links rather than ./
Close #686
5 years ago
Vincent Prouillet
9bc675f2a7
Fix colocated dates + rustfmt
Closes #607
5 years ago
Vincent Prouillet
1c7729cac6
Default lang to config.default_language
5 years ago
Vincent Prouillet
21d67235ae
Arc-ify Library
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
538866487b
Add multilingual taxonomies
5 years ago
Vincent Prouillet
19075191ff
Add translations to page/sections
5 years ago
Vincent Prouillet
832360f9b1
Update deps + rustfmt
5 years ago
Vincent Prouillet
a12e9512bc
fmt/clippy
5 years ago
Vojtech Kral
6e84eec32b
imageproc: Add the `format` option, support for PNG thumbnails
Fix #546
5 years ago
Vincent Prouillet
c0bbe16eac
cargo fmt + update
5 years ago
Shotaro Yamada
692103bff4
Remove redundant clone
5 years ago
Vincent Prouillet
b7ce4e59fb
rustfmt
5 years ago
Jake Howard
aad12d829f
Remote data ( #494 )
5 years ago
Luke Frisken
1baa7750f3
CSV and TOML loading global functions ( #379 )
Local CSV/TOML/JSON loading Tera function
5 years ago
Vincent Prouillet
86c418372f
Add metadata_only to get_section
5 years ago
Vincent Prouillet
f14dbcbdf4
section.subsections is now an array of paths
Close #446
Close #260
Close #478
Close #284
Close #480
5 years ago
Vincent Prouillet
cdcebaea26
Cleanup of slotmap impl
Fix #205
5 years ago
Vincent Prouillet
10aba20fe5
Slotmap refactor
5 years ago
Christian Friedrich Coors
85529186e4
Fix some clippy warnings
5 years ago
Vincent Prouillet
5fe4590063
Default get_url to not add a trailing slash
Closes #388
5 years ago
Vincent Prouillet
bd6578e71c
Fix failing test
5 years ago
Vincent Prouillet
efddb24b95
We actually need get_taxonomy_url. Also update docs
5 years ago
Vincent Prouillet
60a52fd2cc
Some intellij reformatting
5 years ago
Vincent Prouillet
1ae0702494
Custom taxonomies ( #330 )
5 years ago
Vincent Prouillet
d47ba4aff0
Rebasing + tweaks
5 years ago
Vojtech Kral
6662014e55
Add image resizing support #225
6 years ago
Vincent Prouillet
b3b2527c5d
TIL about serde default
6 years ago
Vincent Prouillet
16f658c70c
Move test_site and turn rebuild.rs into a component
6 years ago
Baptiste Darthenay
046de8c998
Config with i18n
6 years ago
Vincent Prouillet
021c99c5f0
Fix tests and add taxonomies to changelog
6 years ago
Vincent Prouillet
322d2f30fb
Add get_taxonomy_url global_fn
And fix bug with taxonomies urls
6 years ago
Carson Page
8759323a16
Add trailing_slash opt. to get_url ( #173 )
* Added inital trailing_slash impl
* Added simple test
* Updated docs website to use trailing_slash option
* Updated documentation to reflect new trailing_slash option
* Added combined cachebust and trailing_slash test
6 years ago
Vincent Prouillet
2db7ec4843
Remove deprecated link param of get_url
6 years ago
Vincent Prouillet
f58e416b96
Clippy run
6 years ago
Vincent Prouillet
8a11d8e049
Fold get_static_url in get_url
6 years ago
Vincent Prouillet
fc63765ee1
Add a get_static_url global fn
Fix #108
6 years ago
Vincent Prouillet
c3b525745e
Convert project to a workspace
6 years ago
Vincent Prouillet
bae3ade471
Add get_section fn and update readme
7 years ago
Vincent Prouillet
b2a63e2ada
Add a get_url global fn
Close #67
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