diff options
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/cmd-index.html.template | 4 | ||||
| -rw-r--r-- | templates/games/index.html.template | 6 | ||||
| -rw-r--r-- | templates/games/rms.html.template | 4 | ||||
| -rw-r--r-- | templates/index.html.template | 6 | ||||
| -rw-r--r-- | templates/login.html.template | 6 | ||||
| -rw-r--r-- | templates/mart/girl.html.template | 14 | ||||
| -rw-r--r-- | templates/mart/index.html.template | 14 | ||||
| -rw-r--r-- | templates/mart/set.html.template | 13 | ||||
| -rw-r--r-- | templates/note.html.template | 4 | ||||
| -rw-r--r-- | templates/outline.html.template | 4 | ||||
| -rw-r--r-- | templates/pkg-index.html.template | 4 | ||||
| -rw-r--r-- | templates/wormhole-success.html.template | 6 | ||||
| -rw-r--r-- | templates/wormhole.html.template | 4 |
13 files changed, 69 insertions, 20 deletions
diff --git a/templates/cmd-index.html.template b/templates/cmd-index.html.template index 16b89b0..e239ef0 100644 --- a/templates/cmd-index.html.template +++ b/templates/cmd-index.html.template @@ -1,8 +1,8 @@ -{{define "head" -}} +{{- define "head"}} <title>Commands</title> {{- end}} -{{define "body" -}} +{{- define "body"}} <section> <p>Command index</p> <ul> diff --git a/templates/games/index.html.template b/templates/games/index.html.template index f235bd1..f25c080 100644 --- a/templates/games/index.html.template +++ b/templates/games/index.html.template @@ -1,6 +1,8 @@ -{{define "head"}}<title>Games</title>{{end}} +{{- define "head"}} + <title>Games</title> +{{- end}} -{{define "body" -}} +{{- define "body"}} <section> <ul> <li><a href="/games/pong">Pong</a> (warning: loud)</li> diff --git a/templates/games/rms.html.template b/templates/games/rms.html.template index 9f396fe..d6efdad 100644 --- a/templates/games/rms.html.template +++ b/templates/games/rms.html.template @@ -1,9 +1,9 @@ -{{define "head" -}} +{{- define "head"}} <title>RMS shooter</title> <script src="/static/games/rms/rms.js" defer></script> {{- end}} -{{define "body" -}} +{{- define "body"}} <img id="sprite-sheet" src="/static/games/rms/sprite-sheet.webp" hidden> <section> diff --git a/templates/index.html.template b/templates/index.html.template index fcb74b6..009083b 100644 --- a/templates/index.html.template +++ b/templates/index.html.template @@ -1,6 +1,8 @@ -{{define "head"}}<title>roseh.moe</title>{{end}} +{{- define "head"}} + <title>roseh.moe</title> +{{- end}} -{{define "body" -}} +{{- define "body"}} <div style="background-image:url(/static/index/stars.webp);background-repeat:repeat;height:500px;display:flex"> <h1 style="margin:auto">roseh.moe</h1> </div> diff --git a/templates/login.html.template b/templates/login.html.template index ce46bd1..49f392b 100644 --- a/templates/login.html.template +++ b/templates/login.html.template @@ -1,6 +1,8 @@ -{{define "head"}}<title>Login</title>{{end}} +{{- define "head"}} + <title>Login</title> +{{- end}} -{{define "body" -}} +{{- define "body"}} <section> {{- if .Error}} <p class="login-error"><img class="inline" src="/static/angry.webp">Incorrect password</p> diff --git a/templates/mart/girl.html.template b/templates/mart/girl.html.template new file mode 100644 index 0000000..a4ffce3 --- /dev/null +++ b/templates/mart/girl.html.template @@ -0,0 +1,14 @@ +{{- define "head"}} + <title>{{.Name}}</title> +{{- end}} + +{{- define "body"}} + {{- range .Sets}} + <figure> + <a href="/mart/sets/{{.ID}}"> + <img width="250" src="/mart/photos/{{.CoverID}}"> + </a> + <figcaption>{{.Name}}</figcaption> + </figure> + {{- end}} +{{- end}} diff --git a/templates/mart/index.html.template b/templates/mart/index.html.template new file mode 100644 index 0000000..db52057 --- /dev/null +++ b/templates/mart/index.html.template @@ -0,0 +1,14 @@ +{{- define "head"}} + <title>Met Art Babes</title> +{{- end}} + +{{- define "body"}} + {{- range .Girls}} + <figure> + <a href="/mart/girls/{{.ID}}"> + <img src="/mart/girls/{{.ID}}/preview.jpeg"> + </a> + <figcaption>{{.Name}}</figcaption> + </figure> + {{- end}} +{{- end}} diff --git a/templates/mart/set.html.template b/templates/mart/set.html.template new file mode 100644 index 0000000..9af31d1 --- /dev/null +++ b/templates/mart/set.html.template @@ -0,0 +1,13 @@ +{{- define "head"}} + <title>{{.Name}}</title> +{{- end}} + +{{- define "body"}} + <div class="fullwidth"> + {{- range .Photos}} + <figure> + <img src="/mart/photos/{{.}}"> + </figure> + {{- end}} + </div> +{{- end}} diff --git a/templates/note.html.template b/templates/note.html.template index ff72bdf..cc9255e 100644 --- a/templates/note.html.template +++ b/templates/note.html.template @@ -1,11 +1,11 @@ -{{define "head" -}} +{{- define "head"}} <script src="/static/htmx.min.js"></script> <title>Notepad</title> <meta name="viewport" content="interactive-widget=resizes-content"> <!-- https://stackoverflow.com/q/76026292 --> {{- end}} -{{define "body" -}} +{{- define "body"}} <form id="form" method="post"> <div class="save-indicator-container"> {{block "saveIndicator" ""}}<span id="save-indicator">{{.}}</span>{{end}} diff --git a/templates/outline.html.template b/templates/outline.html.template index 6ef1fe0..67dfa6d 100644 --- a/templates/outline.html.template +++ b/templates/outline.html.template @@ -4,9 +4,9 @@ <link rel="icon" href="/favicon.ico"> <link rel="stylesheet" href="/static/styles.css"> - {{template "head" .}} + {{- template "head" .}} </head> <body> - {{template "body" .}} + {{- template "body" .}} </body> </html> diff --git a/templates/pkg-index.html.template b/templates/pkg-index.html.template index fc88ed4..ae26686 100644 --- a/templates/pkg-index.html.template +++ b/templates/pkg-index.html.template @@ -1,8 +1,8 @@ -{{define "head" -}} +{{- define "head"}} <title>Packages</title> {{- end}} -{{define "body" -}} +{{- define "body"}} <section> <p>Package index</p> <ul> diff --git a/templates/wormhole-success.html.template b/templates/wormhole-success.html.template index dbb997e..89f9cf2 100644 --- a/templates/wormhole-success.html.template +++ b/templates/wormhole-success.html.template @@ -1,6 +1,8 @@ -{{define "head"}}<title>Uploaded!</title>{{end}} +{{- define "head"}} + <title>Uploaded!</title> +{{- end}} -{{define "body" -}} +{{- define "body"}} <div style="display:flex;flex-direction:column;align-items:center;font-size:50px"> <p><a href="{{.URL}}">{{.URL}}</a></p> <img src="{{.QR}}" alt="QR code for {{.URL}}" width="500px"> diff --git a/templates/wormhole.html.template b/templates/wormhole.html.template index 9c770c1..e773bc0 100644 --- a/templates/wormhole.html.template +++ b/templates/wormhole.html.template @@ -1,8 +1,8 @@ -{{define "head" -}} +{{- define "head"}} <title>Wormhole</title> {{- end}} -{{define "body" -}} +{{- define "body"}} <form method="post" enctype="multipart/form-data" |
