summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/mart/girl.html.template5
-rw-r--r--templates/mart/index.html.template4
-rw-r--r--templates/mart/set.html.template3
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>