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:
parent
ec0bcbe578
commit
5b87393d0d
@ -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]}"} />
|
||||
|
BIN
priv/static/images/og/home.png
Normal file
BIN
priv/static/images/og/home.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 802 KiB |
Loading…
Reference in New Issue
Block a user