Commit graph

706 commits

Author SHA1 Message Date
Morgan Creekmore
a9ab3592c8 Add option to include date in search index (#2401) 2024-06-20 23:15:24 +02:00
Jonas Diemer
b965c89d12
Added documentation about relative image resizing and scaling of high-res (#2096) 2024-06-15 23:08:40 +02:00
Vincent Prouillet
692c690a22
Update themes gallery (#2524)
Co-authored-by: GitHub Action <action@github.com>
2024-06-14 23:03:49 +02:00
FireIsGood
68a7002b43
Docs: Fix long words breaking the site on small screens (#2521)
* Add overflow wrap for long words

* Fix specific case of overflowing text
2024-06-13 09:39:44 +02:00
Vincent Prouillet
c7f601f03e
Update themes gallery (#2518)
Co-authored-by: GitHub Action <action@github.com>
2024-06-12 18:39:25 +02:00
FireIsGood
606c2be425
Improve docs header style (#2516)
* refactor: pattern to separate file

causes a lot of lag and also probably isn't the best to inline since we
have scss preprocessing

* fix: escape quotes properly

* feat: improve header styles
2024-06-12 00:02:22 +02:00
FireIsGood
0056851e31
Fix theme images loading (#2517)
* chore: format themes file

* feat: add aspect ratio to theme images
2024-06-11 11:48:55 +02:00
Vincent Prouillet
8aedec9843
Update themes gallery (#2510)
Co-authored-by: GitHub Action <action@github.com>
2024-05-27 20:37:24 +02:00
orphen
3d0749d478
fix: fix docs CI workflow; build in MRs; build and deploy on master (#2504)
* fix: fix docs CI workflow; build in MRs; build and deploy on master

* fix: set link checker to warn, not error, for site in docs/
2024-05-24 20:48:27 +02:00
Vincent Prouillet
ceced4bf1c
Update themes gallery (#2505)
Co-authored-by: GitHub Action <action@github.com>
2024-05-23 21:48:08 +02:00
june
bf77b5223a
Fix cloudflare pages asdf workaround (#2500)
Trying to deploy with the current asdf command gives me this error:

```
23:47:45.659	Executing user command: zola build
23:47:45.899	Building site...
23:47:45.904	Error: Failed to build the site
23:47:45.904	Error: Error parsing templates from the /templates directory
23:47:45.904	Error: Reason: Io error while writing rendered value to output: NotFound
23:47:45.904	Error: Reason: No such file or directory (os error 2)
23:47:45.906	Failed: Error while executing user command. Exited with error code: 1
23:47:45.915	Failed: build command exited with code: 1
23:47:46.837	Failed: error occurred while running build command
```

Changing the command to use the latest version, 0.18.0 fixed this.
2024-05-17 13:28:34 +02:00
Vincent Prouillet
18245b323c
Update themes gallery (#2490)
Co-authored-by: GitHub Action <action@github.com>
2024-05-07 23:29:59 +02:00
Ryan Wong
f682baa85e
docs(installation): Add information for Gentoo Linux (#2492)
Gentoo linux: https://www.gentoo.org/

Also fixed 2 lines of space formatting
2024-05-07 22:40:54 +02:00
Tirthankar Mazumder
b93640851e
Update overview.md (#2486)
Code snippet the search path to make it look more aesthetic
2024-05-03 20:29:31 +02:00
Nathan Friedly
55e1844c1d
Docs: slugify.paths replaces whitespace with - not _ (#2474)
Minor documentation fix: when `slugify.paths` is set to `"safe"`, whitespaces are replaced with a hyphen, not an underscore.
2024-04-18 13:12:38 +02:00
Vincent Prouillet
9fefe84e69
Update themes gallery (#2471)
Co-authored-by: GitHub Action <action@github.com>
2024-04-01 22:18:38 +02:00
Joshua Gawley
8af3e124a5
Point out that Sass compilation has to be enabled in config.toml (#2458) 2024-03-18 21:53:06 +01:00
Jérôme Ramette
9a5e95cf3d
fix CloudFront invalidation directive in publish.yml GitHub action file (#2456) 2024-03-18 21:49:21 +01:00
TrialDragon
11d2521d7a
Add mention of authors page variable to docs (#2451)
The `authors` variable so far has only been documented as something you can define in the front matter for use of feeds, but it also works in templates to define the authors of a page. (For practical use see: 6c293fa1a4 (diff-672b08946ef5cbc8db5c086bf50651b69b29e9d7be0708a1de7ded170b440e99))

This PR adds it to the documentation so that folks don't have to dig in commit histories to figure out it also works in templates.
2024-03-06 20:09:22 +01:00
TrialDragon
18d28b7096
Fix typo in Fedora installation instructions (#2440) 2024-02-18 21:58:11 +01:00
Vincent Prouillet
cec01e6f48
Update themes gallery (#2425)
Co-authored-by: GitHub Action <action@github.com>
2024-02-04 22:39:07 +01:00
Vincent Prouillet
4a56c068e0
Update themes gallery (#2406)
Co-authored-by: GitHub Action <action@github.com>
2024-01-22 10:16:15 +01:00
Leonid Tsarev
b89837a2cb
Update installation.md to add winget command (#2413) 2024-01-21 17:50:43 +01:00
Yuanlin Lin
9fe455892e
Add Zeabur deployment guide (#2408)
* Add Zeabur deployment guide

* Select Zola version in Zeabur deployment
2024-01-15 09:49:25 +01:00
Yusuf Cihan
b3c9529089
Add more information about Vercel deployments (#2399)
* Add more information about Vercel

* Change wording and add specify version

* Update vercel.md
2024-01-07 14:19:05 +01:00
Javier Pérez
38199c1255
Update the GitLab Pages documentation (#2384)
* docs: update gitlab-pages.md

* docs: rephrase sentence

* docs: add clarification

* docs: fix formatting

* docs: add link to gitlab docs

* docs: update gitlab-pages-md

* docs: refactor gitlab-pages.md
2023-12-21 12:34:16 +01:00
Vincent Prouillet
f560b48f43 Remove dummy file 2023-12-18 23:24:06 +01:00
SquirrelHub
8b2b066e64 Add Checking and Force Flag for Directory in Serve Command (#2265)
* Introduce option to force directory when running the serve command

* Update documentation about the force flag on the serve command

* Resolve cargo fmt issue

* Reword new serve flag documentation
2023-12-18 23:24:06 +01:00
Heitor
841b3dfc92 template:feeds: add extra block (#2263)
* template:feeds: add extra block

* add missing >

* Revert "add missing >"

This reverts commit 45c6b9c6eb.

* Revert "template:feeds: add extra block"

This reverts commit 596f7f1e7f.

* Update docs for feed templates
2023-12-18 23:24:06 +01:00
Andrew Langmeier
4430515a02 Add ignored_static to config (#2209)
* Add ignored_static to config

* Make  handle ignored static files correctly

* cargo fmt

* Match on relative path rather than incorrect target path

* path -> partial path for serve static ignore

* remove debug println

* copy static directory if there is no ignored globset

* Update docs

* Deduplicate code with additional Option argument

* cargo fmt
2023-12-18 23:24:06 +01:00
sinofp
22dc32a589 Add support for lazy loading images (#2211)
* Add optional decoding="async" loading="lazy" for img

In theory, they can make the page load faster and show content faster.

There’s one problem: CommonMark allows arbitrary inline elements in alt text.
If I want to get the correct alt text, I need to match every inline event.

I think most people will only use plain text, so I only match Event::Text.

* Add very basic test for img

This is the reason why we should use plain text when lazy_async_image is enabled.

* Explain lazy_async_image in documentation

* Add test with empty alt and special characters

I totaly forgot one can leave the alt text empty.
I thought I need to eliminate the alt attribute in that case,
but actually empty alt text is better than not having an alt attribute at all:
https://www.w3.org/TR/WCAG20-TECHS/H67.html
https://www.boia.org/blog/images-that-dont-need-alternative-text-still-need-alt-attributes
Thus I will leave the empty alt text.

Another test is added to ensure alt text is properly escaped.
I will remove the redundant escaping code after this commit.

* Remove manually escaping alt text

After removing the if-else inside the arm of Event::Text(text),
the alt text is still escaped.
Indeed they are redundant.

* Use insta for snapshot testing

`cargo insta review` looks cool!

I wanted to dedup the cases variable,
but my Rust skill is not good enough to declare a global vector.
2023-12-18 23:24:06 +01:00
‏‏Dave
c61e925073 Implement replace_re filter (#2163)
* Implement replace_re filter

* Cargo fmt

* add regex caching

* cargo fmt

* update docs, update unit test

* rename replace_re -> regex_replace
2023-12-18 23:24:06 +01:00
Vincent Prouillet
d4d0e4b02a Update syntax highlighting recc 2023-12-17 23:47:03 +01:00
Javier Pérez
8276551811
Update syntax-highlighting.md (#2366) 2023-12-09 21:35:57 +01:00
Spencer Scorcelletti
c031cc592c
Update documention for using zola + Cloudflare Pages per advice in https://github.com/cloudflare/pages-build-image/issues/3#issuecomment-1646873666 (#2364) 2023-11-30 23:14:57 +01:00
Vincent Prouillet
2774d4d410
Update themes gallery (#2356)
Co-authored-by: GitHub Action <action@github.com>
2023-11-13 10:29:04 +01:00
Vincent Prouillet
a7ffb3be81
Update themes gallery (#2349)
Co-authored-by: GitHub Action <action@github.com>
2023-11-04 20:03:29 +01:00
One
7d5ce5c230
Document author (#2347)
* Add author to documentation for config.toml

* Add explanation of how author is used for feeds
2023-10-30 19:03:29 +01:00
c-git
152eccc447
Change to updated version of checkout action (#2340) 2023-10-29 19:45:04 +01:00
Olivier Samyn
0b46736aff
Add multi-stage dockerfile build example (#2327)
* Add multi-stage dockerfile build example

* Simplify install instructions, add docker image deployment example
2023-10-21 22:38:17 +02:00
Vincent Prouillet
9097703b51
Update themes gallery (#2322)
Co-authored-by: GitHub Action <action@github.com>
2023-10-18 13:30:26 +02:00
Rik Huijzer
4f9158f6af
docs: show that base_url should contain protocol (#2328) 2023-10-16 08:51:23 +02:00
Vincent Prouillet
a49af5fa48
Update themes gallery (#2309)
Co-authored-by: GitHub Action <action@github.com>
2023-09-22 11:07:16 +02:00
dxvsh
0a8b2b410a
Fix the link to the author's site (#2313) 2023-09-19 21:41:45 +02:00
Peter Todorov
fc98cafe4a
docs: added aws s3 deployment instructions page (#2299)
* docs: added aws s3 deployment instructions page

* docs: fixed a typo in AWS S3 docs
2023-09-13 21:13:06 +02:00
n0xas
97d74b78b7
docs: update gitlab page deployment (#2292)
Co-authored-by: romain dusson <romain.dusson@alterway.fr>
2023-09-06 22:26:38 +02:00
Oscar Dominguez
e5e1a2fdac
docs: update links to new Tera docs URL (#2289)
More context here: https://github.com/Keats/tera/issues/854#issuecomment-1698901568
2023-08-31 14:32:36 +02:00
Alex Rutar
e6fe81cdf3
fix broken link to Tera (#2286) 2023-08-29 22:18:45 +02:00
Steven Roose
49b56c3026
docs: Update installation.md to use --locked (#2284) 2023-08-24 21:08:37 +02:00
Vincent Prouillet
9ae7d15139
Update themes gallery (#2279)
Co-authored-by: GitHub Action <action@github.com>
2023-08-21 17:31:33 +02:00