
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
Bridgetown plugin to silently generate a sitemaps.org compliant sitemap for your Bridgetown site
bundle add bridgetown-sitemap
config/initializers.rb:Bridgetown.configure do |config|
config.url = "https://example.com" # the base hostname & protocol for your site
init :"bridgetown-sitemap"
end
<lastmod> tagThe <lastmod> tag in the sitemap.xml will reflect by priority:
last_modified_at: with a date in the Front Matter. (Dates need to be formatted as %Y-%m-%d %H:%M:%S %z)git log.<priority> and <changefreq> tagYou can optionally specify a priority and change frequency for each page in your site by adding the following to the Front Matter of each page:
sitemap_priority: 0.7
sitemap_change_frequency: weekly
This will add the following to the <url> tag in the sitemap.xml:
<priority>0.7</priority>
<changefreq>weekly</changefreq>
If you would like to exclude specific pages from the sitemap set the
sitemap flag to false in the front matter for the page.
sitemap: false
To exclude multiple files, add a glob config to your config/initializers.rb file.
Bridgetown.configure do |config|
# ...
config.defaults << {
"scope" => { "path" => "assets/**/*.pdf" },
"values" => { "sitemap" => false }
}
end
bundle exec rake test to run the test suitescript/cibuild to validate with Rubocop and run tests together.git clone to your local development machine.git checkout -b my-new-feature)git commit -am 'Add some feature')git push origin my-new-feature)Bridgetown Sitemap is released under the MIT License.
Copyright © 2023 Ayush Newatia
FAQs
Unknown package
We found that bridgetown-sitemap demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.