From 09fc5a7c1ba5e125657c4fabeff06394531eeb8d Mon Sep 17 00:00:00 2001
From: Julien Dessaux
Date: Fri, 10 Sep 2021 17:40:57 +0200
Subject: Changed the way html pages title is set
---
internal/webui/html/base.html | 2 +-
internal/webui/html/login.html | 1 +
internal/webui/html/root.html | 1 +
3 files changed, 3 insertions(+), 1 deletion(-)
(limited to 'internal/webui/html')
diff --git a/internal/webui/html/base.html b/internal/webui/html/base.html
index 7522e94..28f131b 100644
--- a/internal/webui/html/base.html
+++ b/internal/webui/html/base.html
@@ -3,7 +3,7 @@
- {{ .Title }}
+ {{ template "title" . }}
diff --git a/internal/webui/html/login.html b/internal/webui/html/login.html
index 33e9f02..9aaa3cf 100644
--- a/internal/webui/html/login.html
+++ b/internal/webui/html/login.html
@@ -1,3 +1,4 @@
+{{ define "title"}}Login{{ end }}
{{ template "base" . }}
{{ define "main" }}
diff --git a/internal/webui/html/root.html b/internal/webui/html/root.html
index a293ee7..97441c8 100644
--- a/internal/webui/html/root.html
+++ b/internal/webui/html/root.html
@@ -1,3 +1,4 @@
+{{ define "title"}}Horaires des prochains trains à Crépieux la Pape{{ end }}
{{ template "base" . }}
{{ define "main" }}
--
cgit v1.2.3