about summary refs log tree commit diff
path: root/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/comic.html7
1 files changed, 5 insertions, 2 deletions
diff --git a/layouts/_default/comic.html b/layouts/_default/comic.html
index 2758deb..edc574b 100644
--- a/layouts/_default/comic.html
+++ b/layouts/_default/comic.html
@@ -18,8 +18,11 @@
   <div class="content e-content">
     <center>
     {{ partial "comicNav.html" . }}
-    <img title="{{ .Params.TitleText }}" alt="{{ .Params.Alt}}"
-      src={{ .Params.ComicLink}}>
+    <img title="{{ .Params.TitleText }}"
+         alt={{ readFile (delimit (slice "/static/comics/" .Params.ComicId "/transcript.txt") "")}}
+         src="/comics/{{ .Params.ComicId }}/{{ .Params.ComicTitle }}.png"
+         srcset="/comics/{{ .Params.ComicId }}/{{ .Params.ComicTitle }}_full.png 5x"
+         >
     {{ partial "comicNav.html" . }}
     {{ .Content }}
     <center>