Skip to content
This repository has been archived by the owner on Jan 9, 2024. It is now read-only.

manastech/middleman-sitemap-ping

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Middleman Sitemap Ping

Gem Version Build Status

⚠️ Deprecated: since both Bing and Google killed their public sitemap-ping endpoints, this gem doesn't work anymore. This fork won't be maintained anymore.

Don't use it.

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' # (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! :)

About

Middleman extension to ping search engines (Google and Bing) with a sitemap URL

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%