From 4f5ce1100c2ac3809c2435ec28f6f55d60f774fa Mon Sep 17 00:00:00 2001 From: Lucas Date: Sun, 19 Mar 2023 21:59:41 +0000 Subject: [PATCH] backend: display title conditionally --- templates/layouts/main.html.ep | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/layouts/main.html.ep b/templates/layouts/main.html.ep index 6e5fa29..0087319 100644 --- a/templates/layouts/main.html.ep +++ b/templates/layouts/main.html.ep @@ -3,7 +3,7 @@ - PoorBooru - <%= title %> + <%= join(" - ", "Pooru", title() // ()) %> <%= stylesheet "/css/style.css" %> @@ -18,7 +18,9 @@
+% if (defined title) {

<%= title %>

+% }
<%= content %>
<%= include '_pager' %>