🐛 fix(home-banner): allow missing image & correct spacing

Also allows using normal paths for the banner image, without "$BASE_URL".
This commit is contained in:
welpo 2023-08-29 15:19:00 +02:00
parent 7d8ed20c24
commit 00e1a8e80e
No known key found for this signature in database
GPG key ID: A2F978CF4EC1F5A6
6 changed files with 81 additions and 75 deletions

View file

@ -101,7 +101,7 @@ section_path = "blog/_index.md"
```
[extra]
header = {title = "Hello! I'm tabi~", img = "$BASE_URL/img/main.webp" }
header = {title = "Hello! I'm tabi~", img = "img/main.webp" }
```
The content outside the front matter will be rendered between the header title and the posts listing. In the screenshot above, it's the text that reads "tabi is a fast, lightweight, and modern Zola theme…".