diff options
Diffstat (limited to 'tmpl')
-rw-r--r-- | tmpl/index.tmpl | 27 | ||||
-rw-r--r-- | tmpl/index_login.tmpl | 11 |
2 files changed, 26 insertions, 12 deletions
diff --git a/tmpl/index.tmpl b/tmpl/index.tmpl index f176657..08a86af 100644 --- a/tmpl/index.tmpl +++ b/tmpl/index.tmpl @@ -1,4 +1,6 @@ {{- /* + * vim: filetype=gotmpl + * * Copyright (c) 2024 Runxi Yu * SPDX-License-Identifier: AGPL-3.0-or-later * @@ -17,16 +19,31 @@ */ -}} {{- define "index" -}} <!DOCTYPE html> -<html> +<html lang="en"> <head> <title> - Title + Home – FBFP </title> + <link rel="stylesheet" href="/static/style.css" /> + <meta charset="utf-8" /> + <meta name="viewport" content="width=device-width, initial-scale=1" /> </head> <body> - <p> - Paragraph - </p> + <header> + <div class="header-content"> + <div class="header-left"> + <h1><a id="site-title" href="/">FBFP</a></h1> + </div> + <div class="header-middle"> + </div> + <div class="header-right"> + <p>{{- .user.Name -}}</p> + </div> + </div> + </header> + <main> + e + </main> </body> </html> {{- end -}} diff --git a/tmpl/index_login.tmpl b/tmpl/index_login.tmpl index 819954a..a15a224 100644 --- a/tmpl/index_login.tmpl +++ b/tmpl/index_login.tmpl @@ -22,7 +22,7 @@ <html lang="en"> <head> <title> - Login required – FBFP + Authentication required – FBFP </title> <link rel="stylesheet" href="/static/style.css" /> <meta charset="utf-8" /> @@ -41,12 +41,6 @@ <h1><a id="site-title" href="/">FBFP</a></h1> </div> <div class="header-middle"> - {{- /* - <nav> - <ul> - </ul> - </nav> - */ -}} </div> <div class="header-right"> <p>Unauthenticated</p> @@ -54,6 +48,9 @@ </div> </header> <main> + <p> + {{- .notes -}} + </p> <div id="login-box"> <p> You have not authenticated. You must sign in to use this service. |