diff options
| author | Rose Hogenson <rosehogenson@posteo.net> | 2026-08-18 18:56:33 -0700 |
|---|---|---|
| committer | Rose Hogenson <rosehogenson@posteo.net> | 2026-08-18 18:56:33 -0700 |
| commit | e9fd0b3a06f0a42b8ac7f97ebd318775d52833e9 (patch) | |
| tree | ddd62d1e7da6696c7964a50e1f062e59e6ebf8ff /templates/mart | |
| parent | Add Met Art page (diff) | |
| download | roseh.moe-e9fd0b3a06f0a42b8ac7f97ebd318775d52833e9.tar.zst | |
Improve URL structure
Diffstat (limited to 'templates/mart')
| -rw-r--r-- | templates/mart/girl.html.template | 5 | ||||
| -rw-r--r-- | templates/mart/index.html.template | 4 | ||||
| -rw-r--r-- | templates/mart/set.html.template | 3 |
3 files changed, 7 insertions, 5 deletions
diff --git a/templates/mart/girl.html.template b/templates/mart/girl.html.template index a4ffce3..de249c5 100644 --- a/templates/mart/girl.html.template +++ b/templates/mart/girl.html.template @@ -3,10 +3,11 @@ {{- end}} {{- define "body"}} + {{$girlURL := .URL}} {{- range .Sets}} <figure> - <a href="/mart/sets/{{.ID}}"> - <img width="250" src="/mart/photos/{{.CoverID}}"> + <a href="/mart/{{$girlURL}}/{{.URL}}/"> + <img width="250" src="/mart/{{$girlURL}}/{{.URL}}/{{.CoverID}}.jpeg"> </a> <figcaption>{{.Name}}</figcaption> </figure> diff --git a/templates/mart/index.html.template b/templates/mart/index.html.template index db52057..7cca57c 100644 --- a/templates/mart/index.html.template +++ b/templates/mart/index.html.template @@ -5,8 +5,8 @@ {{- define "body"}} {{- range .Girls}} <figure> - <a href="/mart/girls/{{.ID}}"> - <img src="/mart/girls/{{.ID}}/preview.jpeg"> + <a href="/mart/{{.URL}}/"> + <img src="/mart/{{.URL}}/preview.jpeg"> </a> <figcaption>{{.Name}}</figcaption> </figure> diff --git a/templates/mart/set.html.template b/templates/mart/set.html.template index 9af31d1..77f743e 100644 --- a/templates/mart/set.html.template +++ b/templates/mart/set.html.template @@ -3,10 +3,11 @@ {{- end}} {{- define "body"}} + {{$setURL := .URL}} <div class="fullwidth"> {{- range .Photos}} <figure> - <img src="/mart/photos/{{.}}"> + <img src="/mart/{{$setURL}}/{{.}}.jpeg"> </figure> {{- end}} </div> |
