feat(header): add img_alt attribute for customisable alt text (#153)

This commit is contained in:
Óscar
2023-09-13 19:49:09 +02:00
committed by GitHub
parent f1d92a73ce
commit 1c87b96ac1
6 changed files with 5 additions and 5 deletions

View File

@@ -102,7 +102,7 @@ section_path = "blog/_index.md"
```
[extra]
header = {title = "Hello! I'm tabi~", img = "img/main.webp" }
header = {title = "Hello! I'm tabi~", img = "img/main.webp", img_alt = "Your Name" }
```
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…".