Use page social_image_url if present (#20779)
This commit is contained in:
parent
c01964b03a
commit
01b55c646b
1 changed files with 2 additions and 2 deletions
|
|
@ -7,7 +7,7 @@
|
|||
<meta property="og:type" content="article" />
|
||||
<meta property="og:url" content="<%= app_url(@page.path) %>" />
|
||||
<meta property="og:title" content="<%= @page.title %> — <%= community_name %>" />
|
||||
<meta property="og:image" content="<%= Settings::General.main_social_image %>">
|
||||
<meta property="og:image" content="<%= @page.social_image_url || Settings::General.main_social_image %>">
|
||||
<meta property="og:description" content="<%= @page.description %>" />
|
||||
<meta property="og:site_name" content="<%= community_name %>" />
|
||||
|
||||
|
|
@ -15,7 +15,7 @@
|
|||
<meta name="twitter:site" content="@<%= Settings::General.social_media_handles["twitter"] %>">
|
||||
<meta name="twitter:title" content="<%= @page.title %> — <%= community_name %>">
|
||||
<meta name="twitter:description" content="<%= @page.description %>">
|
||||
<meta name="twitter:image:src" content="<%= Settings::General.main_social_image %>">
|
||||
<meta name="twitter:image:src" content="<%= @page.social_image_url || Settings::General.main_social_image %>">
|
||||
<% end %>
|
||||
|
||||
<main id="main-content">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue