diff --git a/view/layout/global.templ b/view/layout/global.templ
index 39baf93..95536f2 100644
--- a/view/layout/global.templ
+++ b/view/layout/global.templ
@@ -6,7 +6,7 @@ import "projectreshoot/view/component/popup"
// Global page layout. Includes HTML document settings, header tags
// navbar and footer
-templ Global() {
+templ Global(title string) {
-
About
What is Project Reshoot?
diff --git a/view/page/account.templ b/view/page/account.templ
index c11b900..f4aa29a 100644
--- a/view/page/account.templ
+++ b/view/page/account.templ
@@ -4,7 +4,7 @@ import "projectreshoot/view/layout"
import "projectreshoot/view/component/account"
templ Account(subpage string) {
- @layout.Global() {
+ @layout.Global("Account - " + subpage) {
@account.AccountContainer(subpage)
}
}
diff --git a/view/page/error.templ b/view/page/error.templ
index 2ec5095..5da21ec 100644
--- a/view/page/error.templ
+++ b/view/page/error.templ
@@ -7,7 +7,7 @@ import "strconv"
// a string, and err should be the corresponding response title.
// Message is a custom error message displayed below the code and error.
templ Error(code int, err string, message string) {
- @layout.Global() {
+ @layout.Global(err) {
Project Reshoot
A better way to discover and rate films
diff --git a/view/page/login.templ b/view/page/login.templ
index ee0905a..1335601 100644
--- a/view/page/login.templ
+++ b/view/page/login.templ
@@ -5,7 +5,7 @@ import "projectreshoot/view/component/form"
// Returns the login page
templ Login() {
- @layout.Global() {
+ @layout.Global("Login") {
diff --git a/view/page/movie.templ b/view/page/movie.templ
index 48c5e29..ef7700b 100644
--- a/view/page/movie.templ
+++ b/view/page/movie.templ
@@ -4,7 +4,7 @@ import "projectreshoot/tmdb"
import "projectreshoot/view/layout"
templ Movie(movie *tmdb.Movie, credits *tmdb.Credits, image *tmdb.Image) {
- @layout.Global() {
+ @layout.Global(movie.Title) {