views: adjust more <meta> descriptions.

* Add <meta> descriptions to more pages.
* Adjust wiki/pool/forum pages to use an excerpt of the first paragraph.
This commit is contained in:
evazion
2020-01-26 14:38:08 -06:00
parent fbe39148cd
commit 815703a922
22 changed files with 42 additions and 36 deletions

View File

@@ -1,4 +1,6 @@
<% page_title "Pool Gallery" %>
<% meta_description "See thousands of translated anime & hentai comics, galleries, doujins, and more on #{Danbooru.config.app_name}." %>
<%= render "secondary_links" %>
<div id="c-pools">

View File

@@ -1,3 +1,8 @@
<% page_title "Pools" %>
<% meta_description "See thousands of translated anime & hentai comics, galleries, doujins, and more on #{Danbooru.config.app_name}." %>
<%= render "secondary_links" %>
<div id="c-pools">
<div id="a-index">
<%= render "search", :path => pools_path %>
@@ -20,9 +25,3 @@
<%= numbered_paginator(@pools) %>
</div>
</div>
<%= render "secondary_links" %>
<% content_for(:html_header) do %>
<meta name="description" content="Pools are groups of posts with something in common. The most common use of pools is for posts that are part of a series (such as a comic, or a group of images released by an artist).">
<% end %>

View File

@@ -1,4 +1,6 @@
<% page_title "#{@pool.pretty_name.titleize} | Pool" %>
<% page_title @pool.pretty_name %>
<% meta_description("#{number_with_delimiter(@pool.post_count)} pages. #{DText.excerpt(@pool.description)}") %>
<%= render "secondary_links" %>
<div id="c-pools">
@@ -28,7 +30,3 @@
</section>
</div>
</div>
<% content_for(:html_header) do %>
<meta name="description" content="<%= strip_dtext(@pool.description) %>">
<% end %>