Render the assigned page title
This commit is contained in:
@@ -1,2 +1,5 @@
|
||||
module ApplicationHelper
|
||||
def page_title_tag
|
||||
tag.title @page_title || "Fizzy"
|
||||
end
|
||||
end
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -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™ version 0</div>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user