Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/trunkcode/hugo-seo

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/trunkcode/hugo-seo

  • v0.2.2
  • Source
  • Go
  • Socket score

Version published
Created
Source

Hugo Seo

Hugo module adds the following attributes on the markup.

  • target and rel attribute on external link
  • title attribute on link and image elements
  • Add Font Awesome external icon using configuration

Install

hugo mod get github.com/trunkcode/hugo-seo@v0.2.2

Add theme module configuration settings

Add the settings in the following snippet at the end of your site configuration file (default: config.toml) and save the file.

config.toml

[module]
  [[module.imports]]
    path = "github.com/trunkcode/hugo-seo"
    disable = false

config.yaml

module:
  imports:
    - path: github.com/trunkcode/hugo-seo
      disable: false

config.json

{
  "module": {
    "imports": [
      {
        "path": "github.com/trunkcode/hugo-seo",
        "disable": false
      }
    ]
  }
}

Configuration

config.toml
[Params]
  [hugoSeo]
    faExternalIcon = true
    relValue = "noreferrer nofollow"
config.yaml
Params:
  hugoSeo:
    faExternalIcon: true
    relValue: "noreferrer nofollow"
config.json
{
  "Params": {
    "hugoSeo": {
      "faExternalIcon": true,
      "relValue": "noreferrer nofollow"
    }
  }
}

Configuration Settings

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).

faExternalIcon

Default value: false

Add Font Awesome external icon on the external links.

relValue

Default value: "noopener"

Specifies the relationship between the current document and the linked document.

License GitHub

This project is licensed under the Apache License 2.0 - see the LICENSE.md file for details.

FAQs

Package last updated on 16 Dec 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc