Render the assigned page title

This commit is contained in:
Jeffrey Hardy
2024-08-20 14:10:29 -04:00
parent c36831c0ed
commit 84e586ff65
3 changed files with 7 additions and 3 deletions
+3
View File
@@ -1,2 +1,5 @@
module ApplicationHelper
def page_title_tag
tag.title @page_title || "Fizzy"
end
end
+2 -1
View File
@@ -1,7 +1,8 @@
<!DOCTYPE html>
<html>
<head>
<title>Fizzy</title>
<%= page_title_tag %>
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="view-transition" content="same-origin">
<meta name="color-scheme" content="light dark">
+2 -2
View File
@@ -1,4 +1,4 @@
<% content_for(:title) { "Sign in" } %>
<% @page_title = "Sign in" %>
<div class="panel shadow center margin-block-double <%= "shake" if flash[:alert] %>" style="--panel-size: 40ch;">
<%#= image_tag "blob.svg", class: "product__logo center colorize--black", size: 130 %>
@@ -35,6 +35,6 @@
<% end %>
</div>
<% content_for(:footer) do %>
<% content_for :footer do %>
<div class="txt-align-center center margin-block-double txt-subtle">Fizzy&trade; version 0</div>
<% end %>