diff options
author | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2021-09-20 22:32:55 +0700 |
---|---|---|
committer | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2021-09-20 22:32:55 +0700 |
commit | 27cb2f10474a5bb6d5894e45a811c30e9e4b07f9 (patch) | |
tree | a95eb1ecf68b22873af1c50489cdb7001dd87cfc /layouts/_default | |
parent | b850414850a49d47ccf1a00d3fc9731fc7249361 (diff) | |
download | blog-27cb2f10474a5bb6d5894e45a811c30e9e4b07f9.tar.gz |
Make comic description explicit
Alt text is limited for such long text.
Diffstat (limited to 'layouts/_default')
-rw-r--r-- | layouts/_default/comic.html | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/layouts/_default/comic.html b/layouts/_default/comic.html index d13b76e..ef86c7c 100644 --- a/layouts/_default/comic.html +++ b/layouts/_default/comic.html @@ -15,18 +15,23 @@ </center> {{ end}} </header> - <div class="content e-content"> + <section class="content e-content"> <center> {{ partial "comicNav.html" . }} <img title="{{ .Params.TitleText }}" - alt={{ readFile (delimit (slice "/static/comics/" .Params.ComicId "/transcript.txt") "")}} + alt="Comic panels. See transcription below." src="/comics/{{ .Params.ComicId }}/{{ .Params.ComicTitle }}.png" srcset="/comics/{{ .Params.ComicId }}/{{ .Params.ComicTitle }}_full.png 2x" > {{ partial "comicNav.html" . }} - {{ .Content }} - <center> - </div> + </center> + <details> + <summary> + Transcription and extras + </summary> + {{ .Content }} + </details> + </section> {{ partial "postInfo.html" . }} </article> |