* Disallow banned users from updating profile, add noindex to page * Fix user profile tests
23 lines
1.2 KiB
Text
23 lines
1.2 KiB
Text
<link rel="canonical" href="https://dev.to/<%= @user.username %>" />
|
|
<meta name="description" content="<%= @user.summary %>">
|
|
<meta name="keywords" content="software development,engineering,rails,javascript,ruby">
|
|
|
|
<meta property="og:type" content="website" />
|
|
<meta property="og:url" content="https://dev.to/<%= @user.username %>" />
|
|
<meta property="og:title" content="<%= @user.name %> — DEV Profile" />
|
|
<meta property="og:image" content="<%= user_social_image_url(@user) %>">
|
|
<meta property="og:description" content="<%= @user.summary %>" />
|
|
<meta property="og:site_name" content="The DEV Community" />
|
|
|
|
<meta name="twitter:card" content="summary_large_image">
|
|
<meta name="twitter:site" content="@ThePracticalDev">
|
|
<meta name="twitter:creator" content="@<%= @user.twitter_username %>">
|
|
<meta name="twitter:title" content="<%= @user.name %> — DEV Profile">
|
|
<meta name="twitter:description" content="<%= @user.summary %>">
|
|
<meta name="twitter:image:src" content="<%= user_social_image_url(@user) %>">
|
|
<%= auto_discovery_link_tag(:rss, "https://dev.to/feed/#{@user.username}", title: "The Practical Dev RSS Feed") %>
|
|
|
|
<% if @user.banned %>
|
|
<meta name="googlebot" content="noindex">
|
|
<meta name="googlebot" content="nofollow">
|
|
<% end %>
|