mirror of
https://gitea.invidious.io/iv-org/invidious.git
synced 2024-08-15 00:53:41 +00:00
Add meta tags to channels
This commit is contained in:
parent
6707368f19
commit
a1e0a6b499
1 changed files with 15 additions and 1 deletions
|
@ -1,7 +1,21 @@
|
||||||
<% ucid = channel.ucid %>
|
<% ucid = channel.ucid %>
|
||||||
<% author = HTML.escape(channel.author) %>
|
<% author = HTML.escape(channel.author) %>
|
||||||
|
<% channel_profile_pic = URI.parse(channel.author_thumbnail).request_target %>
|
||||||
|
|
||||||
<% content_for "header" do %>
|
<% content_for "header" do %>
|
||||||
|
<meta name="description" content="<%= channel.description %>">
|
||||||
|
<meta property="og:site_name" content="Invidious">
|
||||||
|
<meta property="og:url" content="<%= HOST_URL %>/channel/<%= ucid %>">
|
||||||
|
<meta property="og:title" content="<%= author %>">
|
||||||
|
<meta property="og:image" content="/ggpht<%= channel_profile_pic %>">
|
||||||
|
<meta property="og:description" content="<%= channel.description %>">
|
||||||
|
<meta name="twitter:card" content="summary">
|
||||||
|
<meta name="twitter:site" content="@omarroth1">
|
||||||
|
<meta name="twitter:url" content="<%= HOST_URL %>/channel/<%= ucid %>">
|
||||||
|
<meta name="twitter:title" content="<%= author %>">
|
||||||
|
<meta name="twitter:description" content="<%= channel.description %>">
|
||||||
|
<meta name="twitter:image" content="/ggpht<%= channel_profile_pic %>">
|
||||||
|
<link rel="alternate" href="https://www.youtube.com/channel/<%= ucid %>">
|
||||||
<title><%= author %> - Invidious</title>
|
<title><%= author %> - Invidious</title>
|
||||||
<link rel="alternate" type="application/rss+xml" title="RSS" href="/feed/channel/<%= ucid %>" />
|
<link rel="alternate" type="application/rss+xml" title="RSS" href="/feed/channel/<%= ucid %>" />
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -19,7 +33,7 @@
|
||||||
<div class="pure-g h-box">
|
<div class="pure-g h-box">
|
||||||
<div class="pure-u-2-3">
|
<div class="pure-u-2-3">
|
||||||
<div class="channel-profile">
|
<div class="channel-profile">
|
||||||
<img src="/ggpht<%= URI.parse(channel.author_thumbnail).request_target %>">
|
<img src="/ggpht<%= channel_profile_pic %>">
|
||||||
<span><%= author %></span><% if !channel.verified.nil? && channel.verified %> <i class="icon ion ion-md-checkmark-circle"></i><% end %>
|
<span><%= author %></span><% if !channel.verified.nil? && channel.verified %> <i class="icon ion ion-md-checkmark-circle"></i><% end %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue