ATTR-003: wrong kind of value
Error: the page doesn't build until this is fixed.
Hypra's own settings take one kind of value: priority and decorative are true or false, width is a
number. A string like "yes" would mean something different to every reader, so it isn't accepted.
Fails
page(title: "Shoes", description: "All our running shoes, from light racers to trail shoes.") {
h1 "Shoes"
img("/img/runner-x.jpg", alt: "Runner X in blue, side view", priority: "yes")
}error[ATTR-003]: expected true or false, without data
--> page.hypra:3:74
|
3 | img("/img/runner-x.jpg", alt: "Runner X in blue, side view", priority: "yes")
| ^^^^^
= docs: https://hypralang.dev/rules/attr-003/
1 error, 0 warningsFixed
page(title: "Shoes", description: "All our running shoes, from light racers to trail shoes.") {
h1 "Shoes"
img("/img/runner-x.jpg", alt: "Runner X in blue, side view", priority: true)
}Settings like priority are also fixed when the page compiles, so they can't come from data.