comfortable_mexican_loveseat 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 04947abf7141c7a6f43624475caf1347bc716da0
|
4
|
+
data.tar.gz: 989d1298bdc486b0b5b6e735264155ed9957b494
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14a1cfb6aafdd27b56365af142a0c41f0f1832d5d99e9a2725f0689b98afc70b234ca2097b16ab6489a83c1e6b67cd37e89e5ac94e34f9d2acccba7988373f8c
|
7
|
+
data.tar.gz: 74e8cd88afde594ce6f8e5bf933878beb4d589edf48921cc14d41631f89ef33f68a28b4be0bbb3df9099087c15d027f12281361375c2b5d85daf27e32d2a984f
|
@@ -54,7 +54,10 @@ protected
|
|
54
54
|
@layout = @site.layouts.new(layout_params)
|
55
55
|
@layout.parent ||= ::Comfy::Cms::Layout.find_by_id(params[:parent_id])
|
56
56
|
@layout.app_layout ||= @layout.parent.try(:app_layout)
|
57
|
-
@layout.content ||= "{{ cms:field:seo.old_page_url:string }}\n{{ cms:field:seo.meta_description:string }}\n{{ cms:field:seo.page_title:string }}\n{{ cms:field:seo.canonical_href:string }}\n{{ cms:field:seo.meta_index:string }}\n
|
57
|
+
@layout.content ||= "{{ cms:field:seo.old_page_url:string }}\n{{ cms:field:seo.meta_description:string }}\n{{ cms:field:seo.page_title:string }}\n{{ cms:field:seo.canonical_href:string }}\n{{ cms:field:seo.meta_index:string }}\n" +
|
58
|
+
"{{ cms:field:google_plus.name }}\n{{ cms:field:google_plus.description }}\n{{ cms:field:google_plus.image }}\n" +
|
59
|
+
"{{ cms:field:twitter.card }}\n{{ cms:field:twitter.site }}\n{{ cms:field:twitter.title }}\n{{ cms:field:twitter.description }}\n{{ cms:field:twitter.creator }}\n{{ cms:field:twitter.image_src }}\n" +
|
60
|
+
"{{ cms:field:facebook.title }}\n{{ cms:field:facebook.type }}\n{{ cms:field:facebook.url }}\n{{ cms:field:facebook.image }}\n{{ cms:field:facebook.description }}\n{{ cms:field:facebook.site_name }}\n{{ cms:field:facebook.published_time }}\n{{ cms:field:facebook.modified_time }}\n{{ cms:field:facebook.section }}\n{{ cms:field:facebook.tag }}\n{{ cms:field:facebook.admins }}\n{{ cms:page:content:rich_text }}"
|
58
61
|
end
|
59
62
|
|
60
63
|
def load_layout
|
@@ -5,6 +5,29 @@ module Comfy::CmsHelper
|
|
5
5
|
tags << tag('meta', name: 'description', content: cms_block_content('seo.meta_description')) if cms_block_content('seo.meta_description').present?
|
6
6
|
tags << tag('meta', name: 'robots', content: cms_block_content('seo.meta_index')) if cms_block_content('seo.meta_index').present?
|
7
7
|
tags << tag('link', rel: 'canonical', href: cms_block_content('seo.canonical_href')) if cms_block_content('seo.canonical_href').present?
|
8
|
+
#Google plus
|
9
|
+
tags << tag('meta', itemprop: "name", content: cms_block_content('google_plus.name')) if cms_block_content('google_plus.name').present?
|
10
|
+
tags << tag('meta', itemprop: "description", content: cms_block_content('google_plus.description')) if cms_block_content('google_plus.description').present?
|
11
|
+
tags << tag('meta', itemprop: "image", content: cms_block_content('google_plus.image')) if cms_block_content('google_plus.image').present?
|
12
|
+
#Twitter Card
|
13
|
+
tags << tag('meta', name: 'twitter:card', content: cms_block_content('twitter.card')) if cms_block_content('twitter.card').present?
|
14
|
+
tags << tag('meta', name: 'twitter:site', content: cms_block_content('twitter.site')) if cms_block_content('twitter.site').present?
|
15
|
+
tags << tag('meta', name: 'twitter:title', content: cms_block_content('twitter.title')) if cms_block_content('twitter.title').present?
|
16
|
+
tags << tag('meta', name: 'twitter:description', content: cms_block_content('twitter.description')) if cms_block_content('twitter.description').present?
|
17
|
+
tags << tag('meta', name: 'twitter:creator', content: cms_block_content('twitter.creator')) if cms_block_content('twitter.creator').present?
|
18
|
+
tags << tag('meta', name: 'twitter:image:src', content: cms_block_content('twitter.image_src')) if cms_block_content('twitter.image_src').present?
|
19
|
+
#Facebook
|
20
|
+
tags << tag('meta', property: 'og:title', content: cms_block_content('facebook.title')) if cms_block_content('facebook.title').present?
|
21
|
+
tags << tag('meta', property: 'og:type', content: cms_block_content('facebook.type')) if cms_block_content('facebook.type').present?
|
22
|
+
tags << tag('meta', property: 'og:url', content: cms_block_content('facebook.url')) if cms_block_content('facebook.url').present?
|
23
|
+
tags << tag('meta', property: 'og:image', content: cms_block_content('facebook.image')) if cms_block_content('facebook.image').present?
|
24
|
+
tags << tag('meta', property: 'og:description', content: cms_block_content('facebook.description')) if cms_block_content('facebook.description').present?
|
25
|
+
tags << tag('meta', property: 'og:site_name', content: cms_block_content('facebook.site_name')) if cms_block_content('facebook.site_name').present?
|
26
|
+
tags << tag('meta', property: 'article:published_time', content: cms_block_content('facebook.published_time')) if cms_block_content('facebook.published_time').present?
|
27
|
+
tags << tag('meta', property: 'article:modified_time', content: cms_block_content('facebook.modified_time')) if cms_block_content('facebook.modified_time').present?
|
28
|
+
tags << tag('meta', property: 'article:section', content: cms_block_content('facebook.section')) if cms_block_content('facebook.section').present?
|
29
|
+
tags << tag('meta', property: 'article:tag', content: cms_block_content('facebook.tag')) if cms_block_content('facebook.tag').present?
|
30
|
+
tags << tag('meta', property: 'fb:admins', content: cms_block_content('facebook.admins')) if cms_block_content('facebook.admins').present?
|
8
31
|
|
9
32
|
return tags.join("\n").html_safe
|
10
33
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: comfortable_mexican_loveseat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Bahlke
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-08-
|
12
|
+
date: 2015-08-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|