views: refactor page titles.

Refactor `page_title` helper to automatically include site name.
This commit is contained in:
evazion
2020-01-25 01:29:58 -06:00
parent 95e424ad80
commit 6a984de3d5
64 changed files with 158 additions and 316 deletions

View File

@@ -1,3 +1,6 @@
<% page_title "Forum" %>
<%= render "secondary_links" %>
<div id="c-forum-topics">
<div id="a-index">
<h1>Forum</h1>
@@ -17,10 +20,4 @@
</div>
</div>
<%= render "secondary_links" %>
<% content_for(:page_title) do %>
Forum - <%= Danbooru.config.app_name %>
<% end %>
<% content_for(:html_header, auto_discovery_link_tag(:atom, forum_topics_url(:atom), title: "Forum Topics")) %>

View File

@@ -1,3 +1,5 @@
<% page_title @forum_topic.title %>
<div id="c-forum-topics">
<div id="a-show">
<h1>
@@ -38,10 +40,6 @@
<%= render "secondary_links" %>
<% content_for(:page_title) do %>
<%= @forum_topic.title %> - Forum - <%= Danbooru.config.app_name %>
<% end %>
<% content_for(:html_header) do %>
<%= auto_discovery_link_tag(:atom, {format: :atom}, {title: @forum_topic.title}) %>