about summary refs log tree commit diff
path: root/layouts
diff options
context:
space:
mode:
authorNgô Ngọc Đức Huy <huyngo@disroot.org>2021-09-20 22:32:55 +0700
committerNgô Ngọc Đức Huy <huyngo@disroot.org>2021-09-20 22:32:55 +0700
commit27cb2f10474a5bb6d5894e45a811c30e9e4b07f9 (patch)
treea95eb1ecf68b22873af1c50489cdb7001dd87cfc /layouts
parentb850414850a49d47ccf1a00d3fc9731fc7249361 (diff)
downloadblog-27cb2f10474a5bb6d5894e45a811c30e9e4b07f9.tar.gz
Make comic description explicit
Alt text is limited for such long text.
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/comic.html15
-rw-r--r--layouts/section/comics.rss.xml3
2 files changed, 11 insertions, 7 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>
 
diff --git a/layouts/section/comics.rss.xml b/layouts/section/comics.rss.xml
index 9b44c1c..f9804b7 100644
--- a/layouts/section/comics.rss.xml
+++ b/layouts/section/comics.rss.xml
@@ -29,11 +29,10 @@
       <guid>{{ .Permalink }}</guid>
       <description>
          &lt;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 2x"
          &gt;
-        See also:&lt;br&gt; {{ .Content | html }}
+        Transcriptions:&lt;br&gt; {{ .Content | html }}
       </description>
     </item>
     {{ end }}