diff options
Diffstat (limited to 'layouts/_default')
-rw-r--r-- | layouts/_default/comic.html | 7 |
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> |