summaryrefslogtreecommitdiff
path: root/app/views/layouts/_social_meta.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/layouts/_social_meta.html.erb')
-rw-r--r--app/views/layouts/_social_meta.html.erb7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/views/layouts/_social_meta.html.erb b/app/views/layouts/_social_meta.html.erb
index 9a86d26d..36547d26 100644
--- a/app/views/layouts/_social_meta.html.erb
+++ b/app/views/layouts/_social_meta.html.erb
@@ -23,6 +23,13 @@
23 <meta property="og:locale:alternate" content="<%= alternate %>"/> 23 <meta property="og:locale:alternate" content="<%= alternate %>"/>
24 <% end %> 24 <% end %>
25 25
26 <% if (hreflang_alternates = og_hreflang_alternates).any? %>
27 <% hreflang_alternates.each do |code, url| %>
28 <link rel="alternate" hreflang="<%= code %>" href="<%= url %>"/>
29 <% end %>
30 <link rel="alternate" hreflang="x-default" href="<%= og_locale_url(I18n.default_locale) %>"/>
31 <% end %>
32
26 <% if og_published_time %> 33 <% if og_published_time %>
27 <meta property="article:published_time" content="<%= og_published_time %>"/> 34 <meta property="article:published_time" content="<%= og_published_time %>"/>
28 <% end %> 35 <% end %>