fullstack-cms 0.3.16 → 0.3.17
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/app/support/sitemap.rb +25 -25
- data/fullstack-cms.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.17
|
data/app/support/sitemap.rb
CHANGED
@@ -15,34 +15,34 @@ module Sitemap
|
|
15
15
|
end
|
16
16
|
|
17
17
|
erb = <<-eos
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
<% end -%>
|
18
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
19
|
+
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
20
|
+
<% @pages.each do |page| -%>
|
21
|
+
<% if !page.resourceful? -%>
|
22
|
+
<% begin -%>
|
23
|
+
<% loc = polymorphic_url([:site, page.uid.split("#").last].compact) -%>
|
24
|
+
<url>
|
25
|
+
<loc><%= loc %></loc>
|
26
|
+
</url>
|
27
|
+
<% rescue Exception => e -%>
|
28
|
+
<% end -%>
|
29
|
+
<% else -%>
|
30
|
+
<% page.resource_class.all.each do |resource| -%>
|
31
|
+
<% unless (resource.respond_to?(:published) && !resource.published?) ||
|
32
|
+
(resource.respond_to?(:sitemap) && !resource.sitemap?) -%>
|
33
|
+
<url>
|
34
|
+
<loc><%= page_url_for(resource) -%></loc>
|
35
|
+
<% if resource.respond_to?(:updated_at) -%>
|
36
|
+
<lastmod><%= resource.updated_at.strftime("%F") -%></lastmod>
|
37
|
+
<% end -%>
|
38
|
+
</url>
|
39
|
+
<% end -%>
|
41
40
|
<% end -%>
|
42
41
|
<% end -%>
|
43
|
-
|
42
|
+
<% end -%>
|
43
|
+
</urlset>
|
44
44
|
|
45
|
-
|
45
|
+
eos
|
46
46
|
|
47
47
|
render :inline => erb, :layout => false
|
48
48
|
|
data/fullstack-cms.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fullstack-cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.17
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -329,7 +329,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
329
329
|
version: '0'
|
330
330
|
segments:
|
331
331
|
- 0
|
332
|
-
hash: -
|
332
|
+
hash: -59373079155003092
|
333
333
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
334
334
|
none: false
|
335
335
|
requirements:
|