Hugo module adds the following attributes on the markup.
targetandrelattribute on external linktitleattribute on link and image elements- Add Font Awesome external icon using configuration
hugo mod get github.com/trunkcode/hugo-seo@v0.2.2Add the settings in the following snippet at the end of your site configuration file (default: config.toml) and save the file.
[module]
[[module.imports]]
path = "github.com/trunkcode/hugo-seo"
disable = falsemodule:
imports:
- path: github.com/trunkcode/hugo-seo
disable: false{
"module": {
"imports": [
{
"path": "github.com/trunkcode/hugo-seo",
"disable": false
}
]
}
}[Params]
[hugoSeo]
faExternalIcon = true
relValue = "noreferrer nofollow"Params:
hugoSeo:
faExternalIcon: true
relValue: "noreferrer nofollow"{
"Params": {
"hugoSeo": {
"faExternalIcon": true,
"relValue": "noreferrer nofollow"
}
}
}The following is the full list of Hugo Seo variables with their default value. Users may choose to override those values in their site config file(s).
Default value: false
Add Font Awesome external icon on the external links.
Default value: "noopener"
Specifies the relationship between the current document and the linked document.
This project is licensed under the Apache License 2.0 - see the LICENSE.md file for details.