middleman-search_engine_sitemap 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +11 -4
- data/lib/middleman/search_engine_sitemap/version.rb +1 -1
- data/middleman-search_engine_sitemap.gemspec +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4706cd09a6993f06326a3bbdd0d72e92c6a57f70
|
|
4
|
+
data.tar.gz: 273f1b9b18575a93d59a3bd2ecf74976d7181542
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f9a59d58b24e6aee83c09270038350d8422037f5183136441b54ae38ec016506fa6f7806ace33e7ec8663c794561c6c0ab09fc1ba77ca95c65b2014fd90e9b74
|
|
7
|
+
data.tar.gz: 5879500523aee627a9253875529e1f5a6e0dd9ff1c1660467c9ec37415299017f4792efe5ae19a1d84c2dd7d6728c2b525d3e05b87c364c26f2adde4e9eef882
|
data/README.md
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://travis-ci.org/Aupajo/middleman-search_engine_sitemap)
|
|
4
4
|
[](https://codeclimate.com/github/Aupajo/middleman-search_engine_sitemap)
|
|
5
|
+
[](https://gemnasium.com/Aupajo/middleman-search_engine_sitemap)
|
|
5
6
|
|
|
6
7
|
[Sitemaps](http://www.sitemaps.org/) are an open standard to tell search engines (such as Google) about each page on your site, how often they're updated, and how important each page is, relative to other pages on your site.
|
|
7
8
|
|
|
@@ -11,7 +12,7 @@ For more information on the standard itself, please visit http://www.sitemaps.or
|
|
|
11
12
|
|
|
12
13
|
## Installation
|
|
13
14
|
|
|
14
|
-
Add this line to your Middleman site's Gemfile
|
|
15
|
+
Add this line to your Middleman site's `Gemfile`:
|
|
15
16
|
|
|
16
17
|
```ruby
|
|
17
18
|
gem 'middleman-search_engine_sitemap'
|
|
@@ -27,7 +28,7 @@ Or install it yourself as:
|
|
|
27
28
|
|
|
28
29
|
## Usage
|
|
29
30
|
|
|
30
|
-
|
|
31
|
+
Place the following inside your `config.rb`:
|
|
31
32
|
|
|
32
33
|
```ruby
|
|
33
34
|
set :url_root, 'http://example.com'
|
|
@@ -35,6 +36,10 @@ set :url_root, 'http://example.com'
|
|
|
35
36
|
activate :search_engine_sitemap
|
|
36
37
|
```
|
|
37
38
|
|
|
39
|
+
The sitemap will become available at [http://localhost:4567/sitemap.xml](http://localhost:4567/sitemap.xml).
|
|
40
|
+
|
|
41
|
+
### Settings
|
|
42
|
+
|
|
38
43
|
Pages have a priority of 0.5 and a change frequency of `monthly` by default.
|
|
39
44
|
|
|
40
45
|
You can change these values by passing in options to the `activate` directive:
|
|
@@ -44,7 +49,9 @@ activate :search_engine_sitemap, default_priority: 0.5,
|
|
|
44
49
|
default_change_frequency: "monthly"
|
|
45
50
|
```
|
|
46
51
|
|
|
47
|
-
|
|
52
|
+
### Specifying priority and change frequency for a page
|
|
53
|
+
|
|
54
|
+
You can override the priority or change frequency for a particular page by using frontmatter:
|
|
48
55
|
|
|
49
56
|
```erb
|
|
50
57
|
---
|
|
@@ -78,7 +85,7 @@ The default value is `monthly`.
|
|
|
78
85
|
|
|
79
86
|
## Contributing
|
|
80
87
|
|
|
81
|
-
1. Fork it ( http://github.com
|
|
88
|
+
1. Fork it ( http://github.com/Aupajo/middleman-search_engine_sitemap/fork )
|
|
82
89
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
|
83
90
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
|
84
91
|
4. Push to the branch (`git push origin my-new-feature`)
|
|
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
|
19
19
|
spec.require_paths = ["lib"]
|
|
20
20
|
|
|
21
|
-
spec.add_runtime_dependency "middleman-core", "~> 3.2
|
|
21
|
+
spec.add_runtime_dependency "middleman-core", "~> 3.2"
|
|
22
22
|
spec.add_runtime_dependency "builder"
|
|
23
23
|
|
|
24
24
|
spec.add_development_dependency "bundler", "~> 1.5"
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: middleman-search_engine_sitemap
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Pete Nicholls
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-04-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: middleman-core
|
|
@@ -16,14 +16,14 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 3.2
|
|
19
|
+
version: '3.2'
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: 3.2
|
|
26
|
+
version: '3.2'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: builder
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -141,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
141
141
|
version: '0'
|
|
142
142
|
requirements: []
|
|
143
143
|
rubyforge_project:
|
|
144
|
-
rubygems_version: 2.2.
|
|
144
|
+
rubygems_version: 2.2.2
|
|
145
145
|
signing_key:
|
|
146
146
|
specification_version: 4
|
|
147
147
|
summary: Adds a sitemap.xml file to your Middleman site for search engines.
|