backend: display title conditionally
This commit is contained in:
parent
0a20d7e9f7
commit
4f5ce1100c
@ -3,7 +3,7 @@
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
|
||||
<title>PoorBooru - <%= title %></title>
|
||||
<title><%= join(" - ", "Pooru", title() // ()) %></title>
|
||||
<%= stylesheet "/css/style.css" %>
|
||||
</head>
|
||||
<body class="bg-default fg-default flex-c-vertical">
|
||||
@ -18,7 +18,9 @@
|
||||
</header>
|
||||
<main class="flex-i-fullsize flex-c-vertical">
|
||||
<div class="viewport flex-i-fullsize flex-c-vertical">
|
||||
% if (defined title) {
|
||||
<h1><%= title %></h1>
|
||||
% }
|
||||
<div class="flex-i-fullsize"><%= content %></div>
|
||||
<%= include '_pager' %>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user