Enhance Room OpenGraph Metadata (#1601)

This commit is contained in:
Moritz Schlarb
2020-06-29 21:58:33 +02:00
committed by GitHub
parent 2e4010aed8
commit 3b007c233a
3 changed files with 8 additions and 3 deletions

View File

@ -14,7 +14,7 @@
%>
<!DOCTYPE html>
<html>
<html prefix="og: http://ogp.me/ns#">
<head>
<% if Rails.configuration.google_analytics %>
<!-- Global site tag (gtag.js) - Google Analytics -->
@ -28,8 +28,9 @@
</script>
<% end %>
<title><%= t("bigbluebutton") %></title>
<meta property="og:title" content="<%= t("bigbluebutton", locale: :en) %>" />
<title><%= (yield(:page_title) + " - ") if content_for?(:page_title) + t("bigbluebutton") %></title>
<meta property="og:title" content="<%= (yield(:page_title) + " - ") if content_for?(:page_title) + t("bigbluebutton", locale: :en) %>" />
<meta property="og:type" content="website" />
<meta property="og:description" content="<%= t("landing.about", href: "Greenlight", locale: :en) %>" />
<meta property="og:url" content="<%= request.base_url %>" />