tweak social links

This commit is contained in:
r888888888
2018-10-20 19:24:29 -07:00
parent 0ab6e9f94d
commit ee3b8933d2
5 changed files with 31 additions and 21 deletions

View File

@@ -170,6 +170,8 @@
<meta name="report-server" content="<%= Danbooru.config.reportbooru_server %>">
<% end %>
<%= tag.meta name: "canonical", content: post_url(@post, host: Danbooru.config.hostname, protocol: "https") %>
<%# Twitter properties %>
<% if @post.twitter_card_supported? %>
<meta name="twitter:card" content="summary_large_image">
@@ -186,6 +188,9 @@
<meta name="rating" content="adult">
<% end %>
<%= tag.meta name: "og:type", content: "website" %>
<%= tag.meta name: "og:site", content: Danbooru.config.app_name %>
<%= auto_discovery_link_tag(:atom, comments_url(:atom, search: { post_id: @post.id }), title: "Comments for post ##{@post.id}") %>
<% end %>