1
0
mirror of https://github.com/algora-io/tv.git synced 2024-11-26 01:00:20 +02:00

add fallback og image

This commit is contained in:
zafer 2024-06-06 22:02:14 +03:00
parent ec0bcbe578
commit 5b87393d0d
2 changed files with 5 additions and 7 deletions

View File

@ -28,13 +28,11 @@
<meta property="og:description" content={Algora.config([:description])} />
<% end %>
<%= if assigns[:page_image] do %>
<meta name="twitter:image:src" content={assigns[:page_image]} />
<meta name="twitter:card" content="summary_large_image" />
<meta property="og:image" content={assigns[:page_image]} />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<% end %>
<meta name="twitter:image:src" content={assigns[:page_image] || ~p"/images/og/home.png"} />
<meta name="twitter:card" content="summary_large_image" />
<meta property="og:image" content={assigns[:page_image] || ~p"/images/og/home.png"} />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<%= if assigns[:page_url] do %>
<meta property="og:url" content={"#{assigns[:page_url]}"} />

Binary file not shown.

After

Width:  |  Height:  |  Size: 802 KiB