lalala 4.1.0.dev.392 → 4.1.0.dev.394

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: c8ae10bdc67874f70c0687fbe4926d7d9dd8ebbd
4
- data.tar.gz: ea81493d10fa15086fbabe0d4e6723e8adbf4c63
3
+ metadata.gz: cbdd35af079aff29a50cff9a8a773896f42a6c24
4
+ data.tar.gz: 4634e50163b575e0e1d1e252694a21826ea0f291
5
5
  SHA512:
6
- metadata.gz: 6999bb8621a27992ff2ea0950d3c0fb166aa4e77dd400ed17f3c25ef347390a20e5d37fe1c4fd52c686999f6d9d445782436d7c1e8ed6dfbb5902293f2382ad6
7
- data.tar.gz: 70bb0d68a1bf1ea9eeea277811a1aa8a1a23c4a4e62ea2138bf6a70245cd8d0f07afdadd0e3c52413fb50f79cd4127643ca3fc5e58bbbc8ba99008f1f64035b3
6
+ metadata.gz: e98dde4dd7ab8569342652bdfcfbcd06c8d1d844abf7bc2633d23ec86aff2d928935d7a14ffec4330877a2cea91056f56a3a085d433eb8f27a81a3ee7370f7ee
7
+ data.tar.gz: 40849ff7249ba8d9affc82a025f7792e80941e7a3e3f4bb90718650fad7d6f43bf466d45391daa7778de2b0ea88b443d735bf7e60a06fa7830f68bf15833166e
@@ -1,44 +1,46 @@
1
1
  <!DOCTYPE html>
2
- <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
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
- <%= meta_name_robots %>
17
- <meta name="revisit-after" content="31 days" />
18
- <meta name="author" content="" />
19
- <meta name="publisher" content="Mr. Henry" />
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
- <meta property="og:url" content="<%= canonical_url(request.original_fullpath) %>" />
26
- <meta property="og:title" content="<%= og_title %>" />
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
- <%= javascript_include_tag "modernizr" %>
33
- <%= stylesheet_link_tag "application", media: "all" %>
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 class="chromeframe" style="background-color: rgb(255,65,45); color: white; font-size: 12px; margin: 0; padding: 7px; text-align: center;">
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 tags when @og_image(s) is given
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.url(:medium)}")
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.each do |og_image|
58
- tag("meta", property: "og:image", content: "http:#{og_image.url(:medium)}")
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
@@ -1,6 +1,6 @@
1
1
  module Lalala
2
2
  VERSION = "4.1.0"
3
- BUILD = "392"
3
+ BUILD = "394"
4
4
 
5
5
  if BUILD != ("{{BUILD_NUMBER" + "}}") # prevent sed replacement (see script/ci)
6
6
  BUILD_VERSION = "#{VERSION}.dev.#{BUILD}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lalala
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.0.dev.392
4
+ version: 4.1.0.dev.394
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simon Menke