aboutsummaryrefslogtreecommitdiff
path: root/themes/sourcehut
diff options
context:
space:
mode:
authorнаб <nabijaczleweli@nabijaczleweli.xyz>2020-07-13 15:48:47 +0200
committerSimon Ser <contact@emersion.fr>2020-07-13 17:07:18 +0200
commitae9e70b5adef7fce4350e042b85d3e4601bab3e4 (patch)
treecac438648ae828c96641e2755b740d21aabbb610 /themes/sourcehut
parentd60aca0e5c19de2e250f2166957640db0ad3d24d (diff)
downloadalps-ae9e70b5adef7fce4350e042b85d3e4601bab3e4.tar.gz
alps-ae9e70b5adef7fce4350e042b85d3e4601bab3e4.zip
sourcehut theme: fix nil on emails without a text part
P.a. to 50e131244ad78fd1e4c216770ff69471a6fcb03b which solved https://todo.sr.ht/~emersion/alps/100 Closes: https://todo.sr.ht/~emersion/alps/102
Diffstat (limited to 'themes/sourcehut')
-rw-r--r--themes/sourcehut/mailbox.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/sourcehut/mailbox.html b/themes/sourcehut/mailbox.html
index 1175cbe..70b0635 100644
--- a/themes/sourcehut/mailbox.html
+++ b/themes/sourcehut/mailbox.html
@@ -53,7 +53,7 @@
<li class="nav-item">
<a
class="nav-link"
- href="{{.TextPart.URL false}}"
+ href="{{if .TextPart}}{{.TextPart.URL false}}{{else}}{{.URL}}{{end}}"
>
<span class="text-muted date">
{{ .Envelope.Date | formatdate }}