Commit graph

1545 commits

Author SHA1 Message Date
Bob 4aa2ba84fc Let toc is visable through Page & Section variables in templates (#818)
* Let toc is visable through Page & Section variables in templates

* Removed the current toc variable from page & section
2020-02-02 17:44:38 -08:00
Michael Macias b1ceb3e80e rendering: Avoid prepending URL prefix to links that start with a scheme (#817)
Links that start with a scheme (e.g., `tel:18008675309`) inadvertently
had a URL prefix prepended. Previously, only `mailto:` was handled, but
given the sheer number of [registered URI schemes][uri-schemes], a loose
pattern matcher is used to detect schemes instead.

External links, as identified by the renderer, are now limited to `http`
and `https` schemes.

Fixes #747 and fixes #816.

[uri-schemes]: https://www.iana.org/assignments/uri-schemes/uri-schemes.xhtml
2020-02-02 17:44:38 -08:00
Vincent Prouillet cb4056c0f2 Add zenburn theme
Closes #813
2020-02-02 17:44:38 -08:00
Vincent Prouillet 6856b11d6d Looks like it now requires 1.36 2020-02-02 17:44:38 -08:00
Christopher Vittal 319985add4 Reset color after writing message in colorize
Presently when you `^C` in `zola serve` it is painted with the same
color as the previous message. This PR always ensures to reset the color
in colorize, before writing the newline.
2020-02-02 17:44:38 -08:00
Vincent Prouillet 0578e97d2f Start 0.10 2020-02-02 17:44:38 -08:00
Neeraj Jaiswal ffb4ebb245
Update dockerfile to remove hardcoded version number (#939) 2020-02-02 17:42:43 -08:00
Pierre-Edouard Guerin eed0cd1196 add guerinpe.com to EXAMPLES.md (#933)
Hello !
I'm proposing my ZOLA blog to fill your examples list.

I'm very satisfied by ZOLA, thanks you for creating all this.

Pierre
2020-01-22 08:11:48 -08:00
Jonas Platte 9970bb2c25 Add blog.turbo.fish to EXAMPLES.md (#926) 2020-01-18 18:10:43 +01:00
Christopher Murphy 21b45aff10 fix: update year in docs template (#917)
Updated the copyright year in the docs template to reflect the new year.
2020-01-10 10:30:42 +01:00
Peter Lyons 0a754d004c Add peterlyons.com to EXAMPLES (#914) 2020-01-08 10:33:59 +01:00
Einar e194294664 Pages -> Page (#903) 2019-12-26 13:55:54 +01:00
Eduardo Pinho 1bafec4309 Update links to Tera documentation (#873)
- "/templates" section is gone upstream
2019-12-10 07:00:58 +01:00
Klaus Purer 9ee71314bc docs(examples): Add klau.si example (#872) 2019-12-09 09:19:36 +01:00
Fangdun Cai 3a33aa188a Update EXAMPLES.md (#870) 2019-12-06 13:12:27 +01:00
Andrey Lesnikov 36431c5700 EXAMPLES: rust-gamedev.github.io & arewegameyet.rs (#869) 2019-12-06 13:11:05 +01:00
David Authier f4b6f63d3c 📝 Add TOML translations key example (#864) 2019-11-28 19:18:52 +01:00
Trevor D. Miller 6d7c95e8cb Add example site (#852) 2019-11-26 20:37:10 +01:00
Bruno Rocha df7d128713 Add codeshow.com.br to EXAMPLES.md (#847) 2019-11-18 19:53:04 +01:00
Sylvain Kerkour 481fcb9e52 examples: Add kerkour.fr in EXAMPLES.md (#822) 2019-10-24 23:47:39 +01:00
Matthias Endler a2adb65f47 My website has moved (#819) 2019-10-18 11:21:47 +02:00
Vincent Prouillet 12615f3711
Merge pull request #806 from styfle/patch-1
Add ZEIT Now support
2019-10-03 18:55:41 -07:00
Vincent Prouillet 3de15a2bb4
Merge pull request #810 from ozkriff/patch-1
EXAMPLES: Add ozkriff.games
2019-10-03 17:51:17 -07:00
Andrey Lesnikov d9d4683bd0
EXAMPLES.md: Add ozkriff.games 2019-10-03 18:25:48 +03:00
Vincent Prouillet 500bdd0c8c Update github release task as well 2019-10-01 16:20:03 -07:00
Vincent Prouillet 09762b23ee
Zip archive on Windows releases 2019-10-01 15:30:06 -07:00
Steven a992bc8e9d
Add ZEIT Now support 2019-09-30 11:11:25 -04:00
Vincent Prouillet 0c2e3f297c
Update badges 2019-09-28 20:16:33 -07:00
Vincent Prouillet 1bb144421b
Update EXAMPLES.md 2019-09-28 20:14:40 -07:00
Vincent Prouillet 91f85b2791 Fix release task 2019-09-28 11:32:36 -07:00
Vincent Prouillet 37ad5dccc6
Merge pull request #804 from getzola/next
v0.9.0
2019-09-28 10:59:38 -07:00
Vincent Prouillet b4a31df73e Change release date 2019-09-27 20:18:37 -07:00
Vincent Prouillet 35b567742c Ready for release 2019-09-24 19:12:13 -07:00
Arne Beer f96aad2fdd Only shrink when resizing with fit (#803) 2019-09-24 16:54:14 -07:00
Vincent Prouillet b16d525134 Mention feed_url in docs 2019-09-16 11:46:17 +02:00
Vincent Prouillet 5844047435 Update slotmap 2019-09-16 11:44:39 +02:00
Teymour Aldridge 2377128b10 Improved the grammar of README.md. (#799)
* Improved the grammar of README.md.

Also made stylistic changes.

* Corrected a typo.
2019-09-10 14:20:08 +02:00
Marcus Klaas de Vries 4fd5d3f348 Bump pulldown_cmark to version 0.6.0 (#797)
* Bump pulldown_cmark to version 0.6.0

* Rename headers to headings
2019-09-06 23:36:30 +02:00
Neil Kistner 52c2b74b39 Add anchor existence checking to link_checker component (#786)
* Add anchor existant checking to link_checker component

* Oops, forgot some changes

* Drop scraper dependency and rework tests

* Handle name attributes
2019-09-04 20:31:19 +02:00
Zdenek Crha 096fefe7ed Remove pub visibility from Config::translations hash (#796)
The access to translations is not straightforward and requires checks if
language and key exists. It is better to forbit direct access to
attribute and provide method - `get_translation()` - that will handle
all details of key translations.

Remove unit tests that use direct access and test only public method.
2019-09-04 20:30:32 +02:00
Bob 9db9fc8fb2 Fix the issue of generating the search index for multiple language (#794)
* fix the issue of generating the search index for multiple language

* updat docs for generating the search index for multiple language

* fix failed tests

* add tests for the search index of multiple language
2019-09-03 16:50:23 +02:00
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.
2019-09-03 10:51:41 +02:00
Bob e77adc56fd Fix the issue when checking the changes for multiple language section index file (#787)
* Fix the issue when checking the changes of multiple language section
2019-08-30 15:44:57 +02:00
Vincent Prouillet fb89f94516 Process images on rebuild
Closes #790
2019-08-29 20:08:04 +02:00
Vincent Prouillet fb938a3eed Update completions 2019-08-25 19:15:12 +02:00
Vincent Prouillet b396a1bc20 Add --drafts flag + rustfmt 2019-08-24 22:23:08 +02:00
Vincent Prouillet 57691be90d Update changelog 2019-08-24 19:13:26 +02:00
BilLOPGVkPPn8z0JGJhgiAGNo9YAqpk5ruChl0F 258aecec34 Add one-dark syntax highlight theme (#784) 2019-08-24 19:06:41 +02:00
Daniel Egger beb5a3af41 Universalize the GitHub pages publishing scheme (#780)
Added instructions on how to publish to <username>.github.io or <org>.github.io by changing the publishing branch in the repo to `master`. This should work for any type of GitHub publishing, including custom domains.

Fixes #765
2019-08-24 19:06:07 +02:00
Ever 4fff7508ba ADD: reload when themes change (#771)
* ADD: reload when themes change

close #713

* MOD: test can_detect_kind_of_changes
2019-08-24 19:05:02 +02:00