hypra

SEO-001: page has no title or description

Error: the page doesn't build until this is fixed.

The title names the page in search results, browser tabs and bookmarks, and the description is the text under it in search results and link previews. Without one, search engines take any text from the page.

Fails

page(title: "Shoes") {
  h1 "Shoes"
}
error[SEO-001]: `page` needs `description`
 --> page.hypra:1:1
  |
1 | page(title: "Shoes") {
  | ^^^^
  = help: add description: "..." (search results and link previews use it), here or in the layout
  = docs: https://hypralang.dev/rules/seo-001/

1 error, 0 warnings

Fixed

page(title: "Shoes", description: "All our running shoes, from light racers to trail shoes.") {
  h1 "Shoes"

}