lalala 4.1.0.dev.392 → 4.1.0.dev.394
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cbdd35af079aff29a50cff9a8a773896f42a6c24
|
4
|
+
data.tar.gz: 4634e50163b575e0e1d1e252694a21826ea0f291
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e98dde4dd7ab8569342652bdfcfbcd06c8d1d844abf7bc2633d23ec86aff2d928935d7a14ffec4330877a2cea91056f56a3a085d433eb8f27a81a3ee7370f7ee
|
7
|
+
data.tar.gz: 40849ff7249ba8d9affc82a025f7792e80941e7a3e3f4bb90718650fad7d6f43bf466d45391daa7778de2b0ea88b443d735bf7e60a06fa7830f68bf15833166e
|
@@ -1,44 +1,46 @@
|
|
1
1
|
<!DOCTYPE html>
|
2
|
-
|
3
|
-
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
|
4
|
-
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
|
5
|
-
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
|
2
|
+
<html>
|
6
3
|
<head>
|
7
4
|
<meta charset="utf-8">
|
8
5
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
6
|
+
<meta name="google-site-verification" content="">
|
9
7
|
|
10
8
|
<title><%= og_title %></title>
|
11
9
|
|
12
|
-
<meta name="viewport" content="width=device-width, initial-scale=1, minimal-ui"
|
10
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, minimal-ui">
|
13
11
|
|
14
|
-
<meta name="description" content="<%= og_description %>"
|
15
|
-
<meta name="distribution" content="global"
|
16
|
-
|
17
|
-
<meta name="
|
18
|
-
<meta name="
|
19
|
-
<meta name="
|
20
|
-
<meta name="copyright" content="" />
|
12
|
+
<meta name="description" content="<%= og_description %>">
|
13
|
+
<meta name="distribution" content="global">
|
14
|
+
<meta name="revisit-after" content="31 days">
|
15
|
+
<meta name="author" content="<%= site_name %>">
|
16
|
+
<meta name="publisher" content="Mr. Henry">
|
17
|
+
<meta name="copyright" content="<%= site_name %>">
|
21
18
|
|
19
|
+
<%= meta_name_robots %>
|
22
20
|
<%= favicons %>
|
23
|
-
<link rel="canonical" href="<%= canonical_url(request.original_fullpath) %>" />
|
24
21
|
|
25
|
-
<
|
26
|
-
|
22
|
+
<link rel="canonical" href="<%= canonical_url(request.original_fullpath) %>">
|
23
|
+
|
24
|
+
<meta property="og:url" content="<%= canonical_url(request.original_fullpath) %>">
|
25
|
+
<meta property="og:title" content="<%= og_title %>">
|
27
26
|
<meta property="og:site_name" content="<%= site_name %>">
|
28
|
-
<meta property="og:description" content="<%= og_description %>"
|
27
|
+
<meta property="og:description" content="<%= og_description %>">
|
28
|
+
|
29
29
|
<%= meta_property_og_image %>
|
30
|
-
<meta property="og:image" content="<%= og_image_default_url %>" />
|
31
30
|
|
32
|
-
|
33
|
-
|
31
|
+
<meta name="twitter:card" content="summary_large_image">
|
32
|
+
<meta name="twitter:site" content="<%= twitter_handle %>">
|
33
|
+
<meta name="twitter:title" content="<%= og_title %>">
|
34
|
+
<meta name="twitter:description" content="<%= og_description %>">
|
35
|
+
|
36
|
+
<script src="https://cdn.polyfill.io/v1/polyfill.min.js"></script>
|
34
37
|
|
38
|
+
<%= stylesheet_link_tag "application", media: "all" %>
|
35
39
|
<%= csrf_meta_tags %>
|
36
40
|
</head>
|
37
41
|
<body class="<%= body_class %>">
|
38
|
-
|
39
42
|
<!--[if lt IE 9]>
|
40
|
-
<p
|
41
|
-
You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/" style="color: black;">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true" style="color: black;">activate Google Chrome Frame</a> to improve your experience.</p>
|
43
|
+
<p style="background-color: rgb(255,65,45); color: white; font-size: 12px; margin: 0; padding: 7px; text-align: center;">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/" style="color: black;">upgrade your browser</a> to improve your experience.</p>
|
42
44
|
<![endif]-->
|
43
45
|
|
44
46
|
<%= yield %>
|
@@ -8,6 +8,14 @@ module OpenGraphHelper
|
|
8
8
|
end
|
9
9
|
|
10
10
|
|
11
|
+
# Returns site twitter handle
|
12
|
+
#
|
13
|
+
# @return {String}
|
14
|
+
def twitter_handle
|
15
|
+
"@m_hka"
|
16
|
+
end
|
17
|
+
|
18
|
+
|
11
19
|
# Returns canonical url and following path for the given key in CANONICAL_URLS hash
|
12
20
|
#
|
13
21
|
# @params {String} path
|
@@ -45,17 +53,29 @@ module OpenGraphHelper
|
|
45
53
|
end
|
46
54
|
|
47
55
|
|
48
|
-
# Returns meta og:image
|
56
|
+
# Returns meta og:image & twitter:image tags
|
57
|
+
#
|
58
|
+
# Use @image or @images in your controller to append
|
49
59
|
#
|
50
60
|
# @return {String}
|
51
61
|
def meta_property_og_image
|
62
|
+
unless @og_image and @og_images
|
63
|
+
concat tag("meta", property: "og:image", content: og_image_default_url)
|
64
|
+
concat tag("meta", property: "twitter:image", content: og_image_default_url)
|
65
|
+
end
|
66
|
+
|
52
67
|
if @og_image
|
53
|
-
tag("meta", property: "og:image", content: "http:#{@og_image
|
68
|
+
concat tag("meta", property: "og:image", content: "http:#{@og_image}")
|
69
|
+
concat tag("meta", property: "twitter:image", content: "http:#{@og_image}")
|
54
70
|
end
|
55
71
|
|
56
72
|
if @og_images
|
57
|
-
@og_images.
|
58
|
-
|
73
|
+
@og_images.each_with_index do |og_image, idx|
|
74
|
+
if idx == 0
|
75
|
+
concat tag("meta", property: "twitter:image", content: "http:#{og_image}")
|
76
|
+
end
|
77
|
+
|
78
|
+
concat tag("meta", property: "og:image", content: "http:#{og_image}")
|
59
79
|
end
|
60
80
|
end
|
61
81
|
end
|
data/lib/lalala/version.rb
CHANGED