Change the title of the post index page to look like this:
"Danbooru: Anime Image Board" (for the front page)
"Kantai Collection Art | Danbooru" (for a tag search)
Change the meta description of the front page to look like this:
Danbooru is the original anime image 'booru. Find over 3.75 million
anime pictures categorized by over 100 million tags.
Change the meta description for a tag search to look like this:
Find over 37,168 Azur Lane images on Danbooru. Azur Lane (碧蓝航线)
(벽람항로) is a Chinese shipgirl-themed side-scrolling shoot 'em up
mobile game developed by Shanghai Manjuu and Xiamen Yongshi...
12 lines
406 B
Ruby
12 lines
406 B
Ruby
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
|
|
end
|
|
end
|