views: refactor open graph / twitter <meta> tags.
* Fix og:site to og:site_name. * Fix open graph properties to use <meta property="...">, not <meta name="...">> * Set og:type, og:site_name, twitter:site globally (not just on post pages). * Set og:url. * Remove unused always-resize-images, report-server <meta> tags from post show pages.
This commit is contained in:
@@ -27,9 +27,6 @@
|
||||
|
||||
<%= tag.meta name: "canonical", content: posts_url(tags: params[:tags], host: Danbooru.config.hostname, protocol: "https") %>
|
||||
|
||||
<%= tag.meta name: "og:type", content: "website" %>
|
||||
<%= tag.meta name: "og:site", content: Danbooru.config.app_name %>
|
||||
|
||||
<% if @post_set.best_post.present? %>
|
||||
<%= tag.meta name: "twitter:image", content: @post_set.best_post.open_graph_image_url %>
|
||||
<%= tag.meta name: "og:image", content: @post_set.best_post.open_graph_image_url %>
|
||||
|
||||
Reference in New Issue
Block a user