https://github.com/manuelmeurer/middleman-sitemap-ping
Middleman extension to ping search engines (Google and Bing) with a sitemap URL
https://github.com/manuelmeurer/middleman-sitemap-ping
middleman middleman-extension ping-search-engines sitemap sitemap-ping
Last synced: about 1 month ago
JSON representation
Middleman extension to ping search engines (Google and Bing) with a sitemap URL
- Host: GitHub
- URL: https://github.com/manuelmeurer/middleman-sitemap-ping
- Owner: manuelmeurer
- License: mit
- Created: 2015-05-08T12:03:33.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2021-12-29T09:14:44.000Z (over 3 years ago)
- Last Synced: 2025-04-22T10:46:37.519Z (about 1 month ago)
- Topics: middleman, middleman-extension, ping-search-engines, sitemap, sitemap-ping
- Language: Ruby
- Homepage: https://manuelmeurer.github.io/middleman-sitemap-ping/
- Size: 37.1 KB
- Stars: 10
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Middleman Sitemap Ping
[](http://badge.fury.io/rb/middleman-sitemap-ping)
[](https://travis-ci.org/krautcomputing/middleman-sitemap-ping)[Middleman](https://middlemanapp.com/) 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:
```ruby
activate :sitemap_ping do |config|
config.host = 'http://www.mywebsite.com' # (required) Host of your website
config.sitemap_file = 'custom-sitemap-file.xml' # (optional, default: sitemap.xml) Name of your sitemap file
config.ping_google = false # (optional, default: true) Ping Google?
config.ping_bing = false # (optional, default: true) Ping Bing?
config.after_build = false # (optional, default: true) Run automatically after build?
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
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request## Support
If you like this project, consider [buying me a coffee](https://www.buymeacoffee.com/279lcDtbF)! :)