about summary refs log tree commit diff stats
path: root/frontend/templates
diff options
context:
space:
mode:
authorAlan Pearce2024-05-17 23:01:17 +0200
committerAlan Pearce2024-05-17 23:01:17 +0200
commit934a0693213df901078cd1bc75a5b7e1b5c87555 (patch)
treeea780ee749b74f966ca1c6c5204bcd9cfd1e805e /frontend/templates
parent698881aa577d2c209f162db9263fab17ced3643f (diff)
downloadsearchix-934a0693213df901078cd1bc75a5b7e1b5c87555.tar.lz
searchix-934a0693213df901078cd1bc75a5b7e1b5c87555.tar.zst
searchix-934a0693213df901078cd1bc75a5b7e1b5c87555.zip
feat: render markdown in packages' LongDescription
Diffstat (limited to 'frontend/templates')
-rw-r--r--frontend/templates/blocks/packages.gotmpl6
1 files changed, 5 insertions, 1 deletions
diff --git a/frontend/templates/blocks/packages.gotmpl b/frontend/templates/blocks/packages.gotmpl
index b6e4584..90ba0b2 100644
--- a/frontend/templates/blocks/packages.gotmpl
+++ b/frontend/templates/blocks/packages.gotmpl
@@ -11,7 +11,11 @@
             {{- end }}
           </h3>
         </summary>
-        <p>{{ or .LongDescription .Description }}</p>
+        {{- if .LongDescription }}
+          {{ markdown .LongDescription }}
+        {{- else }}
+          <p>{{ .Description }}</p>
+        {{- end }}
         <dl>
           {{- with .MainProgram }}
             <dt>Main Program</dt>