caboose-cms 0.4.103 → 0.4.104
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/app/models/caboose/page.rb +6 -0
- data/app/views/caboose/blocks/_layout_basic.html.erb +1 -1
- data/lib/caboose/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
Mjg5OTQwZWJhMGVlZWIxYTJkZjk5MmQ4MmZmN2M2Nzc4N2E2NTEyNw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZmJhN2YyNGMyNGI1NDgxNDY0NTU1YmE3ZTczZTZjZWIwMWVmM2VlNg==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZmI5ODVjMGE4N2JhMDhjOGVhZjBkZjNmOTljNWM0YThlYTIzOTIwM2NhYzI4
|
10
|
+
MjljZDllNWFlYjgwMDBjZWI4ZTg4M2I4NWNkMWQxOWQ0ZTJjZjIzOGZhMzJi
|
11
|
+
MDBhOGZlNmUwMWZjMTZlN2E3ZWZmMzlmMDUwNWQ2YTA5MjU4Y2Y=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZjJlNzc5ZGMyNDc0OGMxYzVkNTVjOGJmNjdjZWMxZTNmZDRkOWQ3YjM1YzI3
|
14
|
+
N2EwMTc1YzFhODJhMWMwNTUxNmNlYzRjYWE4NWM1MDM4YmEyM2U0ZjkyOWVi
|
15
|
+
Zjc0ZTkzOGJmMjcwZGY1NGJjYTU1OTZhZDI1NTZkMjg3YTcyM2E=
|
data/app/models/caboose/page.rb
CHANGED
@@ -341,5 +341,11 @@ class Caboose::Page < ActiveRecord::Base
|
|
341
341
|
end
|
342
342
|
return resources
|
343
343
|
end
|
344
|
+
|
345
|
+
def head_title
|
346
|
+
str = ""
|
347
|
+
str << "#{page.title} | " if !page.title.nil? && page.title.strip.length > 0
|
348
|
+
str << page.site.description
|
349
|
+
end
|
344
350
|
|
345
351
|
end
|
@@ -9,7 +9,7 @@ page = block.page
|
|
9
9
|
<head>
|
10
10
|
<meta charset="utf-8" />
|
11
11
|
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1" />
|
12
|
-
<title><%=
|
12
|
+
<title><%= raw page.head_title %></title>
|
13
13
|
<meta name="description" content="" />
|
14
14
|
<meta name="viewport" content="width=device-width" />
|
15
15
|
<%= raw css %>
|
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.4.
|
4
|
+
version: 0.4.104
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- William Barry
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-09-
|
11
|
+
date: 2014-09-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|