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,9 +1,4 @@
module WikiPagesHelper
def wiki_page_excerpt(wiki_page)
text = strip_dtext(wiki_page.body).split(/\r\n|\r|\n/).first
text.truncate(160)
end
def wiki_page_other_names_list(wiki_page)
names_html = wiki_page.other_names.map {|name| link_to(name, "http://www.pixiv.net/search.php?s_mode=s_tag_full&word=#{u(name)}", :class => "wiki-other-name")}
names_html.join(" ").html_safe