diff options
author | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2021-09-02 22:22:17 +0700 |
---|---|---|
committer | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2021-09-02 22:22:17 +0700 |
commit | fb55620a4f005d3ff77876fb629b1b4c126a044f (patch) | |
tree | b3f4f9d167746c6ff6a52bd81c24e8d61a9c4a3b /layouts | |
parent | ce1e834440d6ffd03dc192513dfcb89485cef31c (diff) | |
download | blog-fb55620a4f005d3ff77876fb629b1b4c126a044f.tar.gz |
Add comics
Diffstat (limited to 'layouts')
-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> |