README.md in middleman-search_engine_sitemap-1.1.0 vs README.md in middleman-search_engine_sitemap-1.2.0
- old
+ new
@@ -22,14 +22,10 @@
And then execute:
$ bundle
-Or install it yourself as:
-
- $ gem install middleman-search_engine_sitemap
-
## Usage
Place the following inside your `config.rb`:
```ruby
@@ -63,19 +59,19 @@
### Settings
Pages have a priority of 0.5 and a change frequency of `monthly` by default.
+### Specifying priority and change frequency for a page
+
You can change these values by passing in options to the `activate` directive:
```ruby
activate :search_engine_sitemap, default_priority: 0.5,
default_change_frequency: "monthly"
```
-### Specifying priority and change frequency for a page
-
You can override the priority or change frequency for a particular page by using frontmatter:
```erb
---
title: Blog
@@ -103,9 +99,21 @@
### Change Frequency
Possible values are: `always`, `hourly`, `daily`, `weekly`, `monthly`, `yearly`, `never`.
The default value is `monthly`.
+
+### Customising the URL
+
+Sometimes, you might want to perform some processing the URL:
+
+```ruby
+activate :search_engine_sitemap, process_url: -> (url) { url.chomp('/') }
+```
+
+The example above would remove a trailing slash from a URL.
+
+The value passed into `process_url` is any object that responds to `call`.
## Contributing
1. Fork it ( http://github.com/Aupajo/middleman-search_engine_sitemap/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)