Jason Miller
421a2512f7
Hash collision using the same quality level and incorrect quality for WebP ( #1431 )
...
* fix: webp quality level mismatch
* fix: hash collision using the same image ops
Using the same image operations, but for different formats, e.g. `.jpg` and
`.webp`, produced the same hash.
To differentiate between these, the image extension is added to the hash.
2021-04-18 11:07:10 +02:00
Vincent Prouillet
fc808f2aa8
Some clippy fixes
2021-04-07 22:13:15 +02:00
Vincent Prouillet
0afd31d660
cargo fmt
2021-04-07 22:13:15 +02:00
Vincent Prouillet
d3caa56da2
Nest translations in languages options
2021-04-07 22:13:15 +02:00
Vincent Prouillet
32433e7d6c
Lang aware search indices settings
2021-04-07 22:13:15 +02:00
Vincent Prouillet
187bc30f00
Serializing lang aware configs
2021-04-07 22:13:15 +02:00
Vincent Prouillet
0812b603a6
Remove deprecated config options
2021-04-07 22:13:15 +02:00
Vincent Prouillet
86b42fc1ab
Move taxonomies to language options dict
2021-04-07 22:13:15 +02:00
Vincent Prouillet
7484138a91
Add a LanguageOption for the default language if there is none
2021-04-07 22:13:15 +02:00
Vincent Prouillet
975800eb5b
Enforce unic valid language codes
2021-04-07 22:13:15 +02:00
Bram Neijt
ba8939b240
If it's a directory, serve index.html instead ( #1426 )
2021-04-07 21:47:15 +02:00
Stanislas
6e2595a191
doc(syntax-highlighting): fix available values ( #1427 )
2021-04-07 21:17:02 +02:00
Stanislas
a9afb076b4
doc(content/page): fix typo ( #1419 )
2021-03-27 08:54:11 +01:00
Vincent Prouillet
341ac3bfbd
Southerntofu bugfix index translations ( #1417 )
...
* Translations are also generated for the index page (fix #1332 )
* More tests for translations
* Even better error message
* Update page count for test
* Patch to fix Windows tests
By @mtolk
Co-authored-by: southerntofu <southerntofu@thunix.net>
2021-03-22 20:56:11 +01:00
Bert JW Regeer
5bf9ebc43a
Feature: allow spaces between dashes in filename for page ( #1323 )
...
* Allow optional whitespace around dash/underscore in filename
Allow file names that are as follows:
2021-01-01 - test.md
To be parsed the same as if they were
2021-01-01-test.md
The slug for both will now just be "test" instead of previously the
first example would have become "2021-01-01-test".
* Add documentation for optional whitespace in filename
* Test that updated regex does not take space after dash
2021-03-22 20:00:25 +01:00
Rita Kozlov
1f75738977
Add Cloudflare Pages support to README ( #1396 )
...
* Add Cloudflare Pages support
Demo: https://my-zola-project.pages.dev/ !
* Update README.md
Co-authored-by: Vincent Prouillet <balthek@gmail.com>
2021-03-22 19:21:57 +01:00
Roman
226ff377c7
add Cloudflare Pages to docs ( #1414 )
2021-03-17 22:10:21 +01:00
Jade
958ec2a758
Add CORS header ( #1382 )
...
I was having an issue with `zola serve` where the browser was not
fetching fonts on account of it not sending a CORS header with the
fonts
2021-03-17 09:11:02 +01:00
Bert JW Regeer
5b005b48aa
Allow frontmatter to have optional newline if no content ( #1408 )
...
Without content it should be possible to create a file that contains no
newlines after the frontmatter at all, rather than forcing a newline
after the frontmatter.
2021-03-15 08:52:10 +01:00
Tiago Seabra
534174ae78
feat: add base16-atelierdune-light highlight theme ( #1406 )
...
* feat: add base16-aterlierdune-light highlight theme
* docs: add base16-atelierdune-light theme to CHANGELOG
2021-03-14 09:49:29 +01:00
Vincent Prouillet
940e479596
Fix typo + do not include themes section in search index
2021-03-13 21:09:17 +01:00
Marco Tolk
5964fc192c
fixes #1401 ( #1404 )
...
Co-authored-by: Marco Tolk <marco@marcotolk.com>
2021-03-11 19:47:42 +01:00
Jakub Kozłowski
12c46a9d92
Add note on the requirement of paginate_by
( #1403 )
2021-03-11 19:35:54 +01:00
Vincent Prouillet
25ef603990
Error on invalid file/section
2021-03-06 23:00:56 +01:00
snake66
67f9b9499b
Fix language specific non-internal urls for get_url. ( #1381 )
...
* Fix language specific non-internal urls for get_url.
* get_url: PathBuf for URL's don't work on Windows.
2021-03-06 22:49:04 +01:00
Youri Seichter
ba0c384602
Clarify where to define the theme in the .toml file ( #1390 )
...
It was not clear that the user has to place it in the top level of the
file. I had an issue with that.
2021-03-06 21:12:21 +01:00
Kristofor Salmin
9487b6fab8
Fix serve command when used with config option ( #1385 )
...
* Fix serve command when used with config option
* Use current config path instead of extension to detect change kind
* Fix serve command tests
2021-03-04 19:51:33 +01:00
Vincent Prouillet
51644a79e3
Handle random jetbrains temp files
2021-02-28 22:30:56 +01:00
Vincent Prouillet
2a46e07e74
Add path to TaxonomyTerm
...
Closes #1336
2021-02-22 21:27:52 +01:00
Yngve Høiseth
d29693066e
Document conditional TOC rendering ( #1376 )
...
* Document conditional TOC rendering
* Simplify demonstration of conditional rendering
2021-02-22 21:05:45 +01:00
Vincent Prouillet
7fc7ef4720
Add tests for slug strategy in filenames with dates
2021-02-22 20:39:31 +01:00
throwaway1037
8630c790b8
Update outdated link ( #1375 )
...
This change is less confusing to readers as it does not redirect.
2021-02-22 18:11:32 +01:00
Vincent Prouillet
2bbd3bd424
Fix compute_hash
2021-02-21 09:09:02 +01:00
Vincent Prouillet
0b94e0917d
Update changelog
2021-02-21 08:41:49 +01:00
throwaway1037
c26b94ab8a
Remove stray word ( #1368 )
2021-02-21 08:14:30 +01:00
apiraino
5ce082dfad
Add Sourcehut Pages as deployment platform ( #1365 )
2021-02-20 17:26:46 +01:00
Vincent Prouillet
3262f69bb0
Single compute_hash fn + cargo fmt
2021-02-20 14:07:36 +01:00
Skyper
d3ab3936de
[WIP] Add support for base64-encoded hash values to 'get_file_hash' ( #1339 )
...
* Add support for base64-encoded hash values
The global template function 'get_file_hash' can now return a
base64-encoded hash value when its 'base64' parameter is set to true.
See discussion in #519 .
* Fix integrity attribute's value in test site
SRI hash values must be base64-encoded.
* Update documentation about 'get_file_hash'
* Fix 'can_get_hash_for_static_files' unit test
2021-02-20 13:31:37 +01:00
Hanno Braun
6d6df45f23
Make shortcodes work in markdown
filter ( #1358 )
...
* Move `load_tera` to `templates`
I don't know if this is a good place for it, conceptually. I'm moving it
there because I need to use it from `templates`, and `templates` can't
depend on `site`, because there's already a dependency in the opposite
direction.
* Load templates in `markdown` filter
This enables the `markdown` filter to handle shortcodes, as long as
those shortcodes don't access any context variables.
Addresses #1350
* Update documentation of `markdown` filter
* Only load templates for `markdown` filter once
* Clarify `markdown` filter documentation
This is a lightly edited version of what @southerntofu suggested.
2021-02-19 20:51:08 +01:00
apiraino
3ba2d33564
Copyright date always ending on current year ( #1366 )
2021-02-19 18:46:36 +01:00
Vincent Prouillet
5d1d5d60e7
Update themes gallery ( #1364 )
...
Co-authored-by: GitHub Action <action@github.com>
2021-02-18 22:33:11 +01:00
Philip Kristoffersen
8eac5a5994
WebP support in resize_image ( #1360 )
...
* Removing unused webpl
* Adding clarification comment
* Updating documentation
* Adding webp
2021-02-18 22:30:10 +01:00
Christopher Poenaru
d4db249997
add force arg long switch to CLI ( #1362 )
2021-02-18 17:53:40 +01:00
Jeremy
bf05a54a2e
Add live reload tip for serving site with docker ( #1352 )
2021-02-13 20:06:59 +01:00
Chiu-Hsiang Hsu
d734b1723c
Fix "serve" subcommand for URL encoded static files ( #1351 )
2021-02-13 13:07:01 +01:00
Benjamin Kane
def95886fb
Add final directory structure to overview ( #1348 )
...
For https://github.com/getzola/zola/issues/1341
2021-02-12 14:36:01 +01:00
Chiu-Hsiang Hsu
3cb61c3bcd
Support embed YouTube playlist ( #1342 )
2021-02-07 17:13:03 +01:00
Matt Riggott
a65a2d52c7
Update minify-html dependency to version 0.4.2 ( #1340 )
...
* Update minify-html dependency to version 0.4.2
Fixes https://github.com/getzola/zola/issues/1300 . See also https://github.com/wilsonzlin/minify-html/issues/21
* Update minify-html dependency in Cargo.lock
* Add test to check pre whitespace isn't collapsed
2021-02-06 16:41:10 +01:00
southerntofu
53456bd052
Don't panic for missing highlight theme ( close #1299 ) ( #1307 )
...
* No panic when markdown.highlight_theme is missing
* Better error message for missing theme
* Better error messages
Co-authored-by: southerntofu <southerntofu@thunix.net>
2021-02-04 09:54:12 +01:00
William Desportes
49b6087d21
Document Docker Hub ( #1337 )
2021-02-03 14:59:45 +01:00