comfortable_mexican_loveseat 0.0.7 → 0.0.8
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: 95e4eab6ee77cb6d89e436a1ce877fbdc7a9155d
|
4
|
+
data.tar.gz: cb7eaba78865182342da75cc1043724550038dd6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc98292d85c6a8bc322d9780fd7cd7334d3e3c4cbaba7f3454f4327e2c587ceef29078dc7e52667c14354366019aff57f2d90989dc8488f1157b3f047192b118
|
7
|
+
data.tar.gz: 61d14a343c3ca87083767dd042916ef7893ac809faa058203020f5a7dad53c9b702a80cfe37be7215ea232dc7d8bfbb2f836eb0967bce4a763a44c7a689bf7b0
|
@@ -54,7 +54,7 @@ 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{{ cms:
|
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{{ cms:page:content:rich_text }}"
|
58
58
|
end
|
59
59
|
|
60
60
|
def load_layout
|
@@ -4,7 +4,6 @@ module Comfy::CmsHelper
|
|
4
4
|
tags = []
|
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
|
-
tags << tag('meta', name: 'robots', content: cms_block_content('seo.meta_noindex')) if cms_block_content('seo.meta_noindex').present?
|
8
7
|
tags << tag('link', rel: 'canonical', href: cms_block_content('seo.canonical_href')) if cms_block_content('seo.canonical_href').present?
|
9
8
|
|
10
9
|
return tags.join("\n").html_safe
|