* Prefer main_social_image (except on articles#show) See https://github.com/forem/forem-internal-eng/issues/485 * Cleanup social media helpers no longer in use
19 lines
1.2 KiB
Text
19 lines
1.2 KiB
Text
<link rel="canonical" href="<%= user_url(@user) %>" />
|
|
<meta name="description" content="<%= @user.tag_line %>">
|
|
<%= meta_keywords_default %>
|
|
|
|
<meta property="og:type" content="website" />
|
|
<meta property="og:url" content="<%= user_url(@user) %>" />
|
|
<meta property="og:title" content="<%= t("views.users.meta.og.title", user: @user.name, community: community_name) %>" />
|
|
<meta property="og:image" content="<%= Settings::General.main_social_image %>" />
|
|
<meta property="og:description" content="<%= @user.tag_line %>" />
|
|
<meta property="og:site_name" content="<%= community_name %>" />
|
|
<meta name="twitter:card" content="summary_large_image">
|
|
<meta name="twitter:site" content="@<%= Settings::General.social_media_handles["twitter"] %>">
|
|
<meta name="twitter:creator" content="@<%= @user.twitter_username %>">
|
|
<meta name="twitter:title" content="<%= t("views.users.meta.og.title", user: @user.name, community: community_name) %>">
|
|
<meta name="twitter:description" content="<%= @user.tag_line %>">
|
|
<meta name="twitter:image:src" content="<%= Settings::General.main_social_image %>" />
|
|
<% if @stories.any? %>
|
|
<%= auto_discovery_link_tag(:rss, app_url("/feed/#{@user.username}"), title: t("views.stories.meta.rss", name: community_name)) %>
|
|
<% end %>
|