caboose-cms 0.9.70 → 0.9.71
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/caboose/sites_controller.rb +8 -0
- data/app/models/caboose/schema.rb +3 -1
- data/app/models/caboose/site.rb +3 -1
- data/app/views/caboose/sites/robots.text.erb +5 -0
- data/app/views/caboose/sites/sitemap.xml.erb +16 -0
- data/config/routes.rb +3 -0
- data/lib/caboose/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6383cfb7c9d0346877df3e8e75d78367b7bf0da
|
4
|
+
data.tar.gz: cb2096e197b83f9979aec2d8190ee24e3b715de9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd5a66bcd76e2fc8f1dd76716accb70d6204534a9d570fcfbcaf87e7b9c0dc6f377d012d259c691a6eb02d71065961c3bcb0cdaba0515e18f4dee1851b43d33a
|
7
|
+
data.tar.gz: a4cadb96c6b20fbbb16b95e2f90401a1507ba2877e8b425a1361e7bfbd2b8e56efb8e987e5f5b5e73292ab5493c34fd1f9ddcd1c0e48413d9788db4751098ed1
|
@@ -739,7 +739,9 @@ class Caboose::Schema < Caboose::Utilities::Schema
|
|
739
739
|
[ :date_js_updated , :datetime ],
|
740
740
|
[ :date_css_updated , :datetime ],
|
741
741
|
[ :default_layout_id , :integer ],
|
742
|
-
[ :login_fail_lock_count , :integer , { :default => 5 }]
|
742
|
+
[ :login_fail_lock_count , :integer , { :default => 5 }],
|
743
|
+
[ :sitemap_xml , :text ],
|
744
|
+
[ :robots_txt , :text ]
|
743
745
|
#[ :custom_css , :text ],
|
744
746
|
#[ :custom_css_files , :text ],
|
745
747
|
#[ :custom_js , :text ],
|
data/app/models/caboose/site.rb
CHANGED
@@ -0,0 +1,16 @@
|
|
1
|
+
<% if @site && !@site.sitemap_xml.blank? %><%== @site.sitemap_xml %>
|
2
|
+
<% else %>
|
3
|
+
<% prim = @site.primary_domain.domain %>
|
4
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
5
|
+
<urlset
|
6
|
+
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
|
7
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
8
|
+
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
|
9
|
+
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
|
10
|
+
<url>
|
11
|
+
<loc>http://<%= prim %>/</loc>
|
12
|
+
<changefreq>weekly</changefreq>
|
13
|
+
<priority>1.00</priority>
|
14
|
+
</url>
|
15
|
+
</urlset>
|
16
|
+
<% end %>
|
data/config/routes.rb
CHANGED
@@ -4,6 +4,9 @@ Caboose::Engine.routes.draw do
|
|
4
4
|
#if Caboose::use_comment_routes
|
5
5
|
# eval(Caboose::CommentRoutes.controller_routes)
|
6
6
|
#end
|
7
|
+
|
8
|
+
get "/sitemap.xml" => "sites#sitemap", :format => "xml", :as => :sitemap
|
9
|
+
get "/robots.txt" => "sites#robots", :format => "txt", :as => :robots
|
7
10
|
|
8
11
|
match '*path' => 'pages#show'
|
9
12
|
root :to => 'pages#show'
|
data/lib/caboose/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: caboose-cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.71
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- William Barry
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-09-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pg
|
@@ -1216,6 +1216,8 @@ files:
|
|
1216
1216
|
- app/views/caboose/sites/admin_edit_js.html.erb
|
1217
1217
|
- app/views/caboose/sites/admin_index.html.erb
|
1218
1218
|
- app/views/caboose/sites/admin_new.html.erb
|
1219
|
+
- app/views/caboose/sites/robots.text.erb
|
1220
|
+
- app/views/caboose/sites/sitemap.xml.erb
|
1219
1221
|
- app/views/caboose/smtp/admin_edit.html.erb
|
1220
1222
|
- app/views/caboose/social/admin_edit.html.erb
|
1221
1223
|
- app/views/caboose/social/analytics.html.erb
|