Hugo module adds the following attributes on the markup.
target
andrel
attribute on external linktitle
attribute on link and image elements- Add Font Awesome external icon using configuration
hugo mod get github.com/trunkcode/[email protected]
Add 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 = false
module:
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.