From 735512086436dba4969107695ba7b93f09efce2e Mon Sep 17 00:00:00 2001 From: Rose Hogenson Date: Tue, 8 Sep 2026 08:56:40 -0700 Subject: Simplify the HTML templates by omitting end tags --- templates/404.html.template | 27 +++++++--------- templates/cmd-index.html.template | 27 +++++++--------- templates/games/index.html.template | 16 +++++----- templates/games/pong.html.template | 17 +++++----- templates/games/rms.html.template | 16 ++++------ templates/index.html.template | 26 +++++++-------- templates/login.html.template | 40 +++++++++++------------ templates/note.html.template | 54 +++++++++++++++----------------- templates/outline.html.template | 15 +++------ templates/pkg-index.html.template | 22 ++++++------- templates/wormhole-success.html.template | 16 +++++----- templates/wormhole.html.template | 37 +++++++++------------- 12 files changed, 133 insertions(+), 180 deletions(-) diff --git a/templates/404.html.template b/templates/404.html.template index 543a247..959e30f 100644 --- a/templates/404.html.template +++ b/templates/404.html.template @@ -1,17 +1,12 @@ - + - - Not Found - - - -
-
- {{.Path}} was not found -
-
- Reimu with question marks -
-
- - +Not Found + +
+
+ {{.Path}} was not found +
+
+ Reimu with question marks +
+
diff --git a/templates/cmd-index.html.template b/templates/cmd-index.html.template index 16b89b0..3e581a3 100644 --- a/templates/cmd-index.html.template +++ b/templates/cmd-index.html.template @@ -1,17 +1,12 @@ -{{define "head" -}} - Commands -{{- end}} +Commands -{{define "body" -}} -
-

Command index

- -
-{{- end}} +
+

Command index +

+
diff --git a/templates/games/index.html.template b/templates/games/index.html.template index f235bd1..64cef30 100644 --- a/templates/games/index.html.template +++ b/templates/games/index.html.template @@ -1,10 +1,8 @@ -{{define "head"}}Games{{end}} +Games -{{define "body" -}} -
- -
-{{- end}} +
+ +
diff --git a/templates/games/pong.html.template b/templates/games/pong.html.template index a221023..8cb9226 100644 --- a/templates/games/pong.html.template +++ b/templates/games/pong.html.template @@ -1,11 +1,8 @@ - + - - Pong - - - - - - - +Pong + + + + + diff --git a/templates/games/rms.html.template b/templates/games/rms.html.template index 9f396fe..e657006 100644 --- a/templates/games/rms.html.template +++ b/templates/games/rms.html.template @@ -1,12 +1,8 @@ -{{define "head" -}} - RMS shooter - -{{- end}} +RMS shooter -{{define "body" -}} - + + -
- -
-{{- end}} +
+ +
diff --git a/templates/index.html.template b/templates/index.html.template index 45f4224..ed882e0 100644 --- a/templates/index.html.template +++ b/templates/index.html.template @@ -1,17 +1,15 @@ -{{define "head"}}roseh.moe{{end}} +roseh.moe -{{define "body" -}} -
-

roseh.moe

-
+
+

roseh.moe

+
-
-
- A dragon loli -
+
+
+ A dragon loli +
-

Projects

-

Games?

-

Magic wormhole

-
-{{- end}} +

Projects +

Games? +

Magic wormhole +

diff --git a/templates/login.html.template b/templates/login.html.template index ce46bd1..2b3d022 100644 --- a/templates/login.html.template +++ b/templates/login.html.template @@ -1,24 +1,20 @@ -{{define "head"}}Login{{end}} +Login -{{define "body" -}} -
- {{- if .Error}} - - {{- end}} -
- - - - - - - - - - - - -
-
-
+
+{{- if .Error}} +
+ + + + +
+ +
+ +
+ +
+
+
diff --git a/templates/note.html.template b/templates/note.html.template index ff72bdf..0d4673d 100644 --- a/templates/note.html.template +++ b/templates/note.html.template @@ -1,31 +1,27 @@ -{{define "head" -}} - - Notepad + +Notepad - -{{- end}} + -{{define "body" -}} -
-
- {{block "saveIndicator" ""}}{{.}}{{end}} -
-
- -
-
-{{- end}} +
+
+ {{block "saveIndicator" ""}}{{.}}{{end}} +
+
+ +
+
diff --git a/templates/outline.html.template b/templates/outline.html.template index 6ef1fe0..78f7920 100644 --- a/templates/outline.html.template +++ b/templates/outline.html.template @@ -1,12 +1,7 @@ - + - - - + + + - {{template "head" .}} - - - {{template "body" .}} - - +{{template "body" .}} diff --git a/templates/pkg-index.html.template b/templates/pkg-index.html.template index fc88ed4..67417c2 100644 --- a/templates/pkg-index.html.template +++ b/templates/pkg-index.html.template @@ -1,14 +1,10 @@ -{{define "head" -}} - Packages -{{- end}} +Packages -{{define "body" -}} -
-

Package index

- -
-{{- end}} +
+

Package index +

+
diff --git a/templates/wormhole-success.html.template b/templates/wormhole-success.html.template index dbb997e..86d060c 100644 --- a/templates/wormhole-success.html.template +++ b/templates/wormhole-success.html.template @@ -1,10 +1,8 @@ -{{define "head"}}Uploaded!{{end}} +Uploaded! -{{define "body" -}} -
-

{{.URL}}

- QR code for {{.URL}} -

Uploaded!

- An energetic dragon maid -
-{{- end}} +
+

{{.URL}}

+ QR code for {{.URL}} +

Uploaded!

+ An energetic dragon maid +
diff --git a/templates/wormhole.html.template b/templates/wormhole.html.template index 9c770c1..d277f4c 100644 --- a/templates/wormhole.html.template +++ b/templates/wormhole.html.template @@ -1,23 +1,16 @@ -{{define "head" -}} - Wormhole -{{- end}} +Wormhole -{{define "body" -}} -
-
    -
  1. - -
  2. -
  3. - - {{- if .Err}} -

    A logical dragon maid{{.Err}}

    - {{- end}} -
  4. -
- Files will be deleted after 1 hour -
-{{- end}} +
+
    +
  1. +
  2. + + {{- if .Err}} +

    A logical dragon maid{{.Err}} + {{- end}} +

+ Files will be deleted after 1 hour +
-- cgit v1.3.1