add rating meta tag

This commit is contained in:
Albert Yi
2018-10-12 11:56:54 -07:00
parent d15c0b8266
commit 3696fb10a0
2 changed files with 7 additions and 0 deletions

View File

@@ -80,4 +80,7 @@
<% if @post_set.hide_from_crawler? %>
<meta name="robots" content="nofollow,noindex">
<% end %>
<% if @post_set.has_explicit? %>
<meta name="rating" content="adult">
<% end %>
<% end %>

View File

@@ -183,6 +183,10 @@
<% end %>
<% end %>
<% if @post.rating == "e" %>
<meta name="rating" content="adult">
<% end %>
<%= auto_discovery_link_tag(:atom, comments_url(:atom, search: { post_id: @post.id }), title: "Comments for post ##{@post.id}") %>
<% end %>