
Security News
Vite Releases Technical Preview of Rolldown-Vite, a Rust-Based Bundler
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
github.com/dnb-org/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.
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.
hugo mod get -u github.com/dnb-org/components/robots
hugo mod get -u # update all modules
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.
DNB Hugo are the elements that enhance and simplify your daily work with Hugo, the world's fastest framework for building websites. Included are:
Element | Description |
---|---|
blocks | Blocks are reusable page elements like headers, footers, content display etc. |
components | Components are preconfigured features like automatic search index creation, sitemap and robots.txt creation, etc. |
libraries | Libraries are a collection of often used external packages, conveniently configured as modules for Hugo. |
shortcodes | Shortcodes are content particles that helpfully solve repeated tasks, like presentation, galleries and so on. |
testcontent | Testcontent is a collection of testing content. Obviously. |
FAQs
Unknown package
Did you know?
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.
Security News
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Research
Security News
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Research
Security News
Malicious PyPI package semantic-types steals Solana private keys via transitive dependency installs using monkey patching and blockchain exfiltration.