Hyas SEO
Official SEO integration for Hyas.
Status
Installation
npm i @hyas/seo
Setup
Add mounts to ./config/_default/module.toml
:
[[mounts]]
source = "node_modules/@hyas/seo/layouts"
target = "layouts"
[[mounts]]
source = "layouts"
target = "layouts"
Add settings to ./config/_default/hugo.toml
:
title = "Hyas"
enableRobotsTXT = true
[social]
twitter = "gethyas"
Set parameters in ./config/_default/params.toml
:
title = "Hyas"
description = "Congrats on setting up a new Doks project!"
images = ["cover.png"]
[seo]
[seo.title]
separator = " | "
suffix = ""
[seo.favicons]
sizes = []
icon = "favicon.png"
svgIcon = "favicon.svg"
maskIcon = "mask-icon.svg"
maskIconColor = "white"
[seo.schemas]
type = "Organization"
logo = "images/favicon.png"
name = "Hyas"
sameAs = []
images = ["images/cover.png"]
article = []
newsArticle = []
blogPosting = ["blog"]
product = []
Set parameters in page frontmatter:
seo:
title: ""
description: ""
canonical: ""
noindex: false
structured_data:
product:
currency: USD
price: 500
availability: https://schema.org/OnlineOnly
How to use
See the Hyas documentation:
Credits
This npm package is based on: