Security News
The Risks of Misguided Research in Supply Chain Security
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
grunt-assemble-sitemap
Advanced tools
Sitemap plugin for Assemble
(Table of contents generated by [verb])
$ npm i grunt-assemble-sitemap --save
Next, register the plugin with Assemble:
assemble: {
options: {
plugins: ['grunt-assemble-sitemap', 'other/plugins/*']
}
}
Visit the plugins docs for more info or for help getting started.
See sitemaps.org for detail XML tag definitions.
Type: String
Default: undefined
Sitemap destination. If not set, fallback to assemble destination.
Type: String
Default: homepage
(from package.json)
Site URL
Type: String
Default: weekly
How frequently the page is likely to change. This value provides general information to search engines and may not correlate exactly to how often they crawl the page. Valid values are:
Type: Float
Default: 0.5
The priority of this URL relative to other URLs on your site. Valid values range from 0.0 to 1.0. This value does not affect how your pages are compared to pages on other sites—it only lets the search engines know which pages you deem most important for the crawlers.
Type: Array
Default: ['404']
Pages to omit from the sitemap.
options: {
sitemap: {
exclusions: ["foo", "bar"],
},
files: {
...
}
}
Type: String
/ Boolean
Default: false
Path to which the URLs in Sitemap and Robots should be relative to. true
is equal to the destination path dest
and false
is equal to the root directory.
Type: Boolean
Default: true
Generate robots.txt from exclusions
list.
To simplify might do something like:
assemble: {
blog: {
options: {
plugins: ['grunt-assemble-sitemap'],
},
files: {
'./blog/': ['./templates/blog/*.hbs']
}
}
}
./blog/sitemap.xml
./blog/robots.txt
assemble: {
blog: {
options: {
plugins: ['grunt-assemble-sitemap'],
sitemap: {
homepage: 'http://assemble.io',
changefreq: 'daily',
priority: '0.8',
exclude: ['50x', 'foo'],
robot: false
}
},
files: {
'./blog/': ['./templates/blog/*.hbs']
}
}
}
./blog/sitemap.xml
We welcome all kinds of contributions! The most basic way to show your support is to star the project, and if you'd like to get involved please see the Contributing to grunt-assemble-sitemap guide for information on contributing to this project.
Hariadi Hinta
Copyright © 2015 Hariadi Hinta Released under the MIT license.
DATE VERSION CHANGES
grunt-assemble-sitemap
This file was generated by verb-cli on September 25, 2015.
FAQs
Sitemap plugin for Assemble
The npm package grunt-assemble-sitemap receives a total of 4 weekly downloads. As such, grunt-assemble-sitemap popularity was classified as not popular.
We found that grunt-assemble-sitemap demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
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
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.