Marshall Bowers
93900fb623
Add num_format
filter ( #1460 )
...
* Add `num_format` filter for displaying formatted numbers
* Register the filter
* Update docs
* Make `locale` argument required
* Revert "Make `locale` argument required"
This reverts commit 9cdbf28591
.
* Pull the default locale from the site config
* Add note about defaults to the docs
* Add missing borrow
2021-06-25 10:07:52 +02:00
Vincent Prouillet
0a7692ad85
Exclude self from translation list for page/section
...
Closes #1410
2021-06-24 23:28:49 +02:00
Vincent Prouillet
545e766818
Allow functions to look into current theme static folder
...
Closes #1416
2021-06-24 23:12:05 +02:00
Vincent Prouillet
0cd1ea9537
Avoid panic on invalid addr
2021-06-24 22:36:51 +02:00
Vincent Prouillet
e62664b4ff
Unify {page,section}.assets
...
Closes #1510
2021-06-24 22:22:50 +02:00
Vincent Prouillet
8e9b779fc6
Mention lang for get_taxonomy
...
Closes #1517
2021-06-24 22:03:33 +02:00
Vincent Prouillet
c49d62cd1e
Update deps
2021-06-24 21:59:41 +02:00
Vincent Prouillet
1e6768b18d
Remove search index for themes
2021-06-24 08:37:25 +02:00
Vincent Prouillet
a8acf2cab7
Cache get_image_metadata result
2021-06-14 20:06:57 +02:00
Matt Ronchetto
312ffcb04c
chore: update Vercel documentation ( #1527 )
...
This brings in the proper and latest method to use Zola with Vercel.
2021-06-14 09:42:05 +02:00
Vincent Prouillet
c0a0df4fe9
Update resize_image docs
2021-06-11 23:39:48 +02:00
Vincent Prouillet
1bf5cd7bf8
Update docs + sandbox files
2021-06-11 21:14:45 +02:00
Vincent Prouillet
0975b674c5
Hash imageproc on unified path
2021-06-10 10:26:12 +02:00
Vincent Prouillet
38ddb1c4d1
cargo fmt
2021-06-10 10:26:12 +02:00
Vojtech Kral
9145af6b3e
imageproc things for paths refactor ( #1484 )
...
* Move image loading code used by get_image_metadata from templates to imageproc
* resize_image: Compute image resize op beforehand and return metadata to caller
* get_image_metdata: Use a serializable response struct
* imageproc: Add integration tests
* imageproc: Assume webp is lossy
* get_image_metadata: Use webp crate for decoding WebP, image is still not very good at it
* imageproc: Test read_image_dimensions in integration tests
* imageproc: Rename read_image_dimensions() as read_image_metadata()
* imageproc: Fix a regression in hash computation
* imageproc: Don't hardcode hashes in integration tests, pattern match them instead
* imageproc: Style fixes
* imageproc: Fix integration tests on Windows (hopefully)
2021-06-10 10:26:12 +02:00
Vincent Prouillet
009d105210
Automatically trim /
on Tera fn calls dealing with files
2021-06-10 10:26:12 +02:00
Vincent Prouillet
ae916eb6c5
Some more tweaks
2021-06-10 10:26:12 +02:00
Vincent Prouillet
a736d33afb
Fix tests on Windows
2021-06-10 10:26:12 +02:00
Vincent Prouillet
9e0cac6d4d
Cleanup of get_url and get_file_hash
2021-06-10 10:26:12 +02:00
Vincent Prouillet
7154e90542
Update load_data
2021-06-10 10:26:12 +02:00
Vincent Prouillet
7fb99eaa44
Revamp the images template functions
2021-06-10 10:26:12 +02:00
Vincent Prouillet
b0937fa5b7
Some more cleanup
2021-06-10 10:26:12 +02:00
Vincent Prouillet
a97779567e
Split Tera functions in several files
2021-06-10 10:26:12 +02:00
Vincent Prouillet
c728a8692b
Clear SITE_CONTENT on full reload
2021-06-07 21:00:00 +02:00
Mohsen Alizadeh
635159114d
hide search-results on blur ( #1488 )
2021-06-03 21:38:47 +02:00
Vincent Prouillet
2289b2f55a
Fix config loading
...
Closes #1512
2021-06-02 21:46:20 +02:00
Tim Schumacher
16c123aa20
Include path in the search index with include_path ( #1509 )
2021-06-02 09:18:39 +02:00
Avinash Sonawane
7fab9b4774
Improve docs ( #1506 )
...
* Docs: Mention page.summary for summary
* Docs: Link global functions
* Docs: Fix typos
2021-05-31 09:21:18 +02:00
Avinash Sonawane
4c22996e11
Fix typos ( #1505 )
2021-05-31 09:20:39 +02:00
Pankaj Patil
b292f452bd
Fix|Docs: paginate_reversed is missing from example _index.md ( #1501 )
...
* Fix|Docs: paginate_reversed is missing from example _index.md
* Update docs/content/documentation/content/section.md
Co-authored-by: Vincent Prouillet <balthek@gmail.com>
2021-05-30 17:39:43 +02:00
Abhishek Dahal
1cecf60bf6
Update Travis CI link to point to updated website ( #1498 )
2021-05-28 17:59:08 +02:00
Avinash Sonawane
ff8805ec09
Docs: Don't suggest/use a CSS framework ( #1495 )
2021-05-27 15:10:51 +02:00
Avinash Sonawane
0ca311fdd1
Docs: Document variables with default values ( #1493 )
2021-05-26 22:42:24 +02:00
Avinash Sonawane
6a84f1b4b8
Docs: weight ties sort sections in random order ( #1492 )
2021-05-26 16:34:39 +02:00
Rohan Sharma
4f023d8c70
Docs: Resize feeds image ( #1485 )
...
* Docs: Resize feeds image
* Docs : Move changes to main file
* Fixed formatting
2021-05-25 15:45:18 +02:00
Avinash Sonawane
14b1a3570a
Docs: Add highlight theme green to docs ( #1486 )
2021-05-24 10:42:57 +02:00
Avinash Sonawane
e0498f2fe4
CONTRIBUTING.md: Fix sublime syntaxes and themes directory names ( #1483 )
2021-05-24 08:25:17 +02:00
Vincent Prouillet
aaa4f4e872
Fix highlighting
2021-05-24 08:20:28 +02:00
Vincent Prouillet
c38d9e56c8
Do not clone ancestors when serializing
2021-05-23 18:19:18 +02:00
Vincent Prouillet
fe79798b0f
Remove unused code + rustfmt
2021-05-23 18:13:28 +02:00
Avinash Sonawane
60386292a8
Docs: Move build_search_index to root level in config.toml ( #1479 )
2021-05-23 17:15:48 +02:00
Vincent Prouillet
c393deddd3
Better description for output-dir of zola serve
2021-05-23 14:19:09 +02:00
Vincent Prouillet
ca4b5d5c45
Remove unused option
...
Closes #1477
2021-05-23 14:01:58 +02:00
Avinash Sonawane
70675ff710
Make sure that -i, -p and -u options take mandatory arguments ( #1474 )
2021-05-23 13:57:49 +02:00
Avinash Sonawane
8ee6df030f
Docs: Mention that the output directory will be deleted before build ( #1472 )
...
and serve
2021-05-23 13:53:25 +02:00
Avinash Sonawane
22fcae457a
Docs: Add second.md filename to directory structure overview ( #1469 )
2021-05-21 22:00:30 +02:00
Avinash Sonawane
0596b9944c
Docs: Remove --watch-only flag ( #1468 )
2021-05-21 21:58:13 +02:00
Avinash Sonawane
4140ab7207
Specify default output directory ( #1464 )
2021-05-21 17:43:41 +02:00
Eric Scouten
22c29fe936
Fix race condition in generating next/previous page references when using transparent mode. ( #1456 )
2021-05-17 22:05:22 +02:00
Waffle Lapkin
f8c6ea2b00
Add new sorting: UpdateDate that sorts by meta.updated
. ( #1452 )
...
* Add new sorting: UpdateDate that sorts by `meta.updated`.
* Use `max(created, updated)` for sort-by-update-date
This prevents created but never updated articles from appearing at the end/not
appearing at all.
2021-05-15 20:16:55 +02:00