From b522360a74a7d32fec85e8ae4ac4ba9a279b7a4c Mon Sep 17 00:00:00 2001 From: Rose Hogenson Date: Sat, 15 Aug 2026 08:38:43 -0700 Subject: Fix html formatting ...finally --- templates/cmd-index.html.template | 30 ++++++++-------- templates/games/index.html.template | 14 ++++---- templates/games/rms.html.template | 18 +++++----- templates/index.html.template | 22 ++++++------ templates/login.html.template | 42 +++++++++++----------- templates/note.html.template | 60 +++++++++++++++++--------------- templates/outline.html.template | 4 ++- templates/pkg-index.html.template | 24 +++++++------ templates/wormhole-success.html.template | 14 ++++---- templates/wormhole.html.template | 42 +++++++++++----------- 10 files changed, 145 insertions(+), 125 deletions(-) diff --git a/templates/cmd-index.html.template b/templates/cmd-index.html.template index fb8c626..16b89b0 100644 --- a/templates/cmd-index.html.template +++ b/templates/cmd-index.html.template @@ -1,15 +1,17 @@ -{{define "head"}} - Commands -{{end}} +{{define "head" -}} + Commands +{{- end}} -
-

Command index

- -
+{{define "body" -}} +
+

Command index

+ +
+{{- end}} diff --git a/templates/games/index.html.template b/templates/games/index.html.template index 917a0c9..f235bd1 100644 --- a/templates/games/index.html.template +++ b/templates/games/index.html.template @@ -1,8 +1,10 @@ {{define "head"}}Games{{end}} -
- -
+{{define "body" -}} +
+ +
+{{- end}} diff --git a/templates/games/rms.html.template b/templates/games/rms.html.template index ba00824..9f396fe 100644 --- a/templates/games/rms.html.template +++ b/templates/games/rms.html.template @@ -1,10 +1,12 @@ -{{define "head"}} - RMS shooter - -{{end}} +{{define "head" -}} + RMS shooter + +{{- end}} - +{{define "body" -}} + -
- -
+
+ +
+{{- end}} diff --git a/templates/index.html.template b/templates/index.html.template index 1723ffb..fcb74b6 100644 --- a/templates/index.html.template +++ b/templates/index.html.template @@ -1,14 +1,16 @@ {{define "head"}}roseh.moe{{end}} -
-

roseh.moe

-
+{{define "body" -}} +
+

roseh.moe

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

Games?

-

Magic wormhole

-
+

Games?

+

Magic wormhole

+
+{{- end}} diff --git a/templates/login.html.template b/templates/login.html.template index 1aef0f2..ce46bd1 100644 --- a/templates/login.html.template +++ b/templates/login.html.template @@ -1,22 +1,24 @@ {{define "head"}}Login{{end}} -
- {{if .Error}} - - {{end}} -
- - - - - - - - - - - - -
-
-
+{{define "body" -}} +
+ {{- if .Error}} + + {{- end}} +
+ + + + + + + + + + + + +
+
+
+{{- end}} diff --git a/templates/note.html.template b/templates/note.html.template index 19da416..3c7049c 100644 --- a/templates/note.html.template +++ b/templates/note.html.template @@ -1,31 +1,33 @@ -{{define "head"}} - - Notepad +{{define "head" -}} + + Notepad - -{{end}} + +{{- end}} -
-
- {{block "saveIndicator" ""}} - {{.}} - {{end}} -
-
- -
-
+{{define "body" -}} +
+
+ {{- block "saveIndicator" ""}} + {{.}} + {{- end}} +
+
+ +
+
+{{- end}} diff --git a/templates/outline.html.template b/templates/outline.html.template index fd3c215..6ef1fe0 100644 --- a/templates/outline.html.template +++ b/templates/outline.html.template @@ -6,5 +6,7 @@ {{template "head" .}} - {{template "body" .}} + + {{template "body" .}} + diff --git a/templates/pkg-index.html.template b/templates/pkg-index.html.template index d8cd12e..fc88ed4 100644 --- a/templates/pkg-index.html.template +++ b/templates/pkg-index.html.template @@ -1,12 +1,14 @@ -{{define "head"}} - Packages -{{end}} +{{define "head" -}} + Packages +{{- end}} -
-

Package index

- -
+{{define "body" -}} +
+

Package index

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

{{.URL}}

- QR code for {{.URL}} -

Uploaded!

- An energetic dragon maid -
+{{define "body" -}} +
+

{{.URL}}

+ QR code for {{.URL}} +

Uploaded!

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

    A logical dragon maid{{.Err}}

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

    A logical dragon maid{{.Err}}

    + {{- end}} +
  4. +
+ Files will be deleted after 1 hour +
+{{- end}} -- cgit v1.3.1