seo_landing_pages 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/seo_landing_pages/helper.rb +6 -6
- data/lib/seo_landing_pages/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb26c62ef093c524bb9d8d33db0815986a797555
|
4
|
+
data.tar.gz: c5c199575b532840790bfac6ccead4ad44f37079
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f5637533ef3005f601ba227d461ae628488e9b9685c7f93f1dc6cd04fb0744a62a9f451673325fa57e0e5c26c6fd74d94efc59cff1c14991705c4b0b6002c88
|
7
|
+
data.tar.gz: 26bd218f93363da207aa73a31efc3b0d82142401cd3e04dadaba1c742ad19ec4790df29d77cdd7b4bc1b268165b2c2ad9345190d8bbdfbfe87b0529dc3be33ca
|
data/README.md
CHANGED
@@ -127,6 +127,6 @@ a Pull Request having it ;-)
|
|
127
127
|
|
128
128
|
## Credits
|
129
129
|
|
130
|
-
This gem was developed in the [Hack Week at XING Barcelona](
|
131
|
-
thanks to XING for providing the time to see ideas being realized.
|
130
|
+
This gem was developed in the [Hack Week at XING Barcelona](https://twitter.com/hashtag/hackweekxing).
|
131
|
+
Big thanks to XING for providing the time to see ideas being realized.
|
132
132
|
|
@@ -8,7 +8,7 @@ module SeoLandingPages
|
|
8
8
|
# If the landing page title is empty it returns nothing.
|
9
9
|
def seo_landing_page_title_tag(i18n: false)
|
10
10
|
title = seo_landing_page_title i18n: i18n
|
11
|
-
if title
|
11
|
+
if title.present?
|
12
12
|
"<title>#{ title }</title>".html_safe
|
13
13
|
end
|
14
14
|
end
|
@@ -19,7 +19,7 @@ module SeoLandingPages
|
|
19
19
|
def seo_landing_page_title(i18n: false)
|
20
20
|
if seo_current_landing_page
|
21
21
|
title = seo_current_landing_page.title
|
22
|
-
if title
|
22
|
+
if title.present?
|
23
23
|
i18n ? t(title) : title
|
24
24
|
end
|
25
25
|
end
|
@@ -31,7 +31,7 @@ module SeoLandingPages
|
|
31
31
|
# If the landing page description is empty it returns nothing.
|
32
32
|
def seo_landing_page_description_tag(i18n: false)
|
33
33
|
description = seo_landing_page_description i18n: i18n
|
34
|
-
if description
|
34
|
+
if description.present?
|
35
35
|
"<meta name='description' content='#{ description }'/>".html_safe
|
36
36
|
end
|
37
37
|
end
|
@@ -43,7 +43,7 @@ module SeoLandingPages
|
|
43
43
|
def seo_landing_page_description(i18n: false)
|
44
44
|
if seo_current_landing_page
|
45
45
|
description = seo_current_landing_page.description
|
46
|
-
if description
|
46
|
+
if description.present?
|
47
47
|
i18n ? t(description) : description
|
48
48
|
end
|
49
49
|
end
|
@@ -55,7 +55,7 @@ module SeoLandingPages
|
|
55
55
|
# If the landing page keywords is empty it returns nothing.
|
56
56
|
def seo_landing_page_keywords_tag(i18n: false)
|
57
57
|
keywords = seo_landing_page_keywords i18n: i18n
|
58
|
-
if keywords
|
58
|
+
if keywords.present?
|
59
59
|
"<meta name='keywords' content='#{ keywords }'/>".html_safe
|
60
60
|
end
|
61
61
|
end
|
@@ -67,7 +67,7 @@ module SeoLandingPages
|
|
67
67
|
def seo_landing_page_keywords(i18n: false)
|
68
68
|
if seo_current_landing_page
|
69
69
|
keywords = seo_current_landing_page.keywords
|
70
|
-
if keywords
|
70
|
+
if keywords.present?
|
71
71
|
i18n ? t(keywords) : keywords
|
72
72
|
end
|
73
73
|
end
|