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.
assemble-contrib-sitemap
Advanced tools
Sitemap generator plugin for Assemble
From the same directory as your project's Gruntfile and package.json, install this plugin with the following command:
npm install assemble-contrib-sitemap --save
Once that's done, just add assemble-contrib-sitemap
, the name of this module, to the plugins
option in the Assemble task:
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
assemble: {
options: {
plugins: ['assemble-contrib-sitemap']
},
...
}
});
grunt.loadNpmTasks('assemble');
grunt.registerTask('default', ['assemble']);
};
If everything was installed and configured correctly, you should be ready to go!
See sitemaps.org for detail XML tag definitions.
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: String
Default: weekly
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']
Page to omit from the sitemap.
options: {
sitemap: {
exclusions: ["foo", "bar"],
},
files: {
...
}
}
Type: Boolean
Default: true
Generate robots.txt from exclusions
list.
To simplify might do something like:
assemble: {
blog: {
options: {
plugins: ['assemble-contrib-sitemap'],
},
files: {
'./blog/': ['./templates/blog/*.hbs']
}
}
}
./blog/sitemap.xml
./blog/robots.txt
assemble: {
blog: {
options: {
plugins: ['assemble-contrib-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 involed please see the Contributing to assemble-contrib-sitemap guide for information on contributing to this project.
Hariadi Hinta
Copyright (c) 2014 Hariadi Hinta, contributors. Released under the license
This file was generated on Thursday, February 5, 2014.
FAQs
Sitemap generator plugin for Assemble
The npm package assemble-contrib-sitemap receives a total of 22 weekly downloads. As such, assemble-contrib-sitemap popularity was classified as not popular.
We found that assemble-contrib-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.