all repos — auth-boilerplate @ eebc50adc44e2da4fd342114c921dcc8d6bbfe10

A simple Go web-app boilerplate.

show app name in titles
Marco Andronaco andronacomarco@gmail.com
Thu, 24 Oct 2024 20:35:48 +0200
commit

eebc50adc44e2da4fd342114c921dcc8d6bbfe10

parent

5dad190cf2035dafa6b9735c198d7f2e1efdc130

M templates/auth-login.tmpltemplates/auth-login.tmpl

@@ -1,6 +1,6 @@

{{ extends "auth.tmpl" }} -{{define "title" -}}Login{{end}} +{{define "title" -}}Login - {{end}} {{define "auth" -}} <h1>Login</h1>
M templates/auth-new_password.tmpltemplates/auth-new_password.tmpl

@@ -1,6 +1,6 @@

{{ extends "auth.tmpl" }} -{{define "title" -}}Reset password{{end}} +{{define "title" -}}Reset password - {{end}} {{define "auth" -}} <h1>Reset password</h1>
M templates/auth-register.tmpltemplates/auth-register.tmpl

@@ -1,6 +1,6 @@

{{ extends "auth.tmpl" }} -{{define "title" -}}Sign up{{end}} +{{define "title" -}}Sign up - {{end}} {{define "auth" -}} <h1>Sign up</h1>
M templates/auth-reset_password.tmpltemplates/auth-reset_password.tmpl

@@ -1,6 +1,6 @@

{{ extends "auth.tmpl" }} -{{define "title" -}}Reset password{{end}} +{{define "title" -}}Reset password - {{end}} {{define "auth" -}} <h1>Reset password</h1>
M templates/base.tmpltemplates/base.tmpl

@@ -4,7 +4,7 @@

<head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> - <title>{{block "title" .}}Page title{{end}}</title> + <title>{{block "title" .}}{{end}}App</title> <link rel="stylesheet" href="https://cdn.simplecss.org/simple.min.css"> <link rel="stylesheet" href="/static/style.css"> </head>
M templates/index.tmpltemplates/index.tmpl

@@ -1,6 +1,6 @@

{{ extends "base.tmpl" }} -{{define "title" -}}Auth boilerplate{{end}} +{{define "title" -}}{{end}} {{define "content" -}} <h1>Auth boilerplate</i>!</h1>
M templates/profile.tmpltemplates/profile.tmpl

@@ -1,6 +1,6 @@

{{ extends "base.tmpl" }} -{{define "title" -}}User profile{{end}} +{{define "title" -}}Profile - {{end}} {{define "content" -}} <h1>Welcome, <i>{{.User.Username}}</i>!</h1>