Middleman Sitemap Ping

Middleman extension to ping search engines (Google and Bing) with a sitemap URL
Installation
Add this line to your application's Gemfile:
gem 'middleman-sitemap-ping'
And then execute:
$ bundle
Or install it yourself as:
$ gem install middleman-sitemap-ping
Versions
Use version 1.x of this gem for Middleman 4 or 0.x for Middleman 3.
Usage
Activate the extensions in config.rb in your Middleman app:
activate :sitemap_ping do |config|
config.host = 'http://www.mywebsite.com'
config.sitemap_file = 'custom-sitemap-file.xml'
config.ping_google = false
config.ping_bing = false
config.after_build = false
end
Once the extension is activated, it will ping the search engines automatically every time you build your site (unless you set config.after_build = false).
You can also execute the ping from the command line:
bundle exec middleman sitemap_ping
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Add some feature')
- Push to the branch (
git push origin my-new-feature)
- Create new Pull Request
Support
If you like this project, consider buying me a coffee! :)