middleman-search_engine_sitemap 1.4.0.alpha → 1.4.0.beta
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d4b3c9f9ddbadafdd9ba1a818222c2d3a9eecbd0
|
|
4
|
+
data.tar.gz: ef41a1fec6b97dffae6639f78d09d3b8a091e64e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1b9a21b4da3c3490d8face728f79cdc812fb741d283bb420727d0a5407b9cce15469b25136fe4133457e820fc318fbe20df337e7a2d2997f3d3a10783878677d
|
|
7
|
+
data.tar.gz: 0b4b821bc995bb89a113d6d08362815edef0091947d478eef557b2cca9a9446941f9ea836f6c0e2a8d73af0d1c380656f0e5f259870970faa93b0285dd3de869
|
|
@@ -14,10 +14,6 @@ module Middleman
|
|
|
14
14
|
option :process_url, nil, 'Proc for processing a URL'
|
|
15
15
|
option :exclude_if, ->(resource) { false }
|
|
16
16
|
|
|
17
|
-
def after_configuration
|
|
18
|
-
# register_extension_templates
|
|
19
|
-
end
|
|
20
|
-
|
|
21
17
|
def manipulate_resource_list(resources)
|
|
22
18
|
resources << sitemap_resource
|
|
23
19
|
end
|
|
@@ -52,13 +48,6 @@ module Middleman
|
|
|
52
48
|
File.extname(app.config.index_file)
|
|
53
49
|
end
|
|
54
50
|
|
|
55
|
-
def register_extension_templates
|
|
56
|
-
# We call reload_path to register the templates directory with Middleman.
|
|
57
|
-
# The path given to app.files must be relative to the Middleman site's root.
|
|
58
|
-
templates_dir_relative_from_root = Pathname(TEMPLATES_DIR).relative_path_from(Pathname(app.root))
|
|
59
|
-
app.files.reload_path(templates_dir_relative_from_root)
|
|
60
|
-
end
|
|
61
|
-
|
|
62
51
|
def sitemap_resource
|
|
63
52
|
source_file = template('sitemap.xml.builder')
|
|
64
53
|
|