
Security News
Another Round of TEA Protocol Spam Floods npm, But It’s Not a Worm
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.
github.com/dnb-org/components/search-algolia
Advanced tools
This is a Hugo theme component with helpers to add an Algolia powered search to your website.
First 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/search-algolia"
The next time you run hugo it will download the latest version of the module.
To make this component work you need to add Algolia to your home output formats:
[outputs]
home = [ ... others ... , "Algolia" ]
You already should have an [output] section, add "Algolia" to it. Do not add it anywhere other than in the home directive.
Adding the search to your content
content/search/index.md
---
title: Search
description: Search in all articles
url: /search
---
{{< search >}}
Add your items to the search index
Install atomic-algolia:
npm install -D atomic-algolia
Once you configured your search index at algolia you can add new items in your deploy script. Add the following lines to your package.json (the sections might exist, so don't re-create them).
Add a script to your package.json configuration
{
"scripts": {
"algolia": "hugo --quiet && atomic-algolia && rm -rf public"
}
}
Add the index creation to your deployment process:
npm run algolia
hugo mod get -u github.com/dnb-org/components/robots
hugo mod get -u # update all modules
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
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.

Security News
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads

Research
/Security News
A malicious Chrome extension posing as an Ethereum wallet steals seed phrases by encoding them into Sui transactions, enabling full wallet takeover.