backend: display title conditionally

This commit is contained in:
Lucas 2023-03-19 21:59:41 +00:00
parent 0a20d7e9f7
commit 4f5ce1100c

View File

@ -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>