Change page title based on current page (#269)

This commit is contained in:
Riccardo Graziosi
2024-01-26 17:35:00 +01:00
committed by GitHub
parent a7d67652bf
commit fadd577db8
8 changed files with 41 additions and 1 deletions

View File

@@ -0,0 +1,7 @@
<%= @page_title %>
<% if @tenant %>
<% if @page_title %>
<%= " | " %>
<% end %>
<%= @tenant.site_name %>
<% end %>

View File

@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title><%= @tenant ? @tenant.site_name : @page_title %></title>
<title><%= render 'layouts/page_title' %></title>
<%= csrf_meta_tags %>
<%= csp_meta_tag %>