New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github.com/dnb-org/components/sitemap

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/dnb-org/components/sitemap

v1.4.13
Source
Go
Version published
Created
Source

DNB Hugo Components / Sitemap

This is a Hugo theme component with layouts to add a configurable sitemap to your website. Hugo itself has internal templates that add sitemaps, but this component has additional setup options per page.

Installing

Step 1: enable modules in your own repository:

hugo mod init github.com/username/reponame

Then add this module to your required modules in config.toml.

[module]
[[module.imports]]
path = "github.com/dnb-org/components/sitemap"

The next time you run hugo it will download the latest version of the module.

Updating

hugo mod get -u github.com/dnb-org/components/robots
hugo mod get -u # update all modules

Usage

There is no need to configure anything if you don't have any special needs. Add the module to your repository structure and run it. Once you ran hugo you will find a file sitemap.xml in your public directory. This is the file you want to submit to search engines.

If you are using the Robots component of DNB Hugo, then your resulting robots.txt will have a pointer to the sitemap file as well.

Other components in DNB Hugo components

Other elements in DNB Hugo

DNB Hugo are the elements that enhance and simplify your daily work with Hugo, the world's fastest framework for building websites. Included are:

ElementDescription
blocksBlocks are reusable page elements like headers, footers, content display etc.
componentsComponents are preconfigured features like automatic search index creation, sitemap and robots.txt creation, etc.
librariesLibraries are a collection of often used external packages, conveniently configured as modules for Hugo.
shortcodesShortcodes are content particles that helpfully solve repeated tasks, like presentation, galleries and so on.
testcontentTestcontent is a collection of testing content. Obviously.

FAQs

Package last updated on 09 Nov 2021

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