diff options
author | наб <nabijaczleweli@nabijaczleweli.xyz> | 2020-07-13 15:48:47 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-07-13 17:07:18 +0200 |
commit | ae9e70b5adef7fce4350e042b85d3e4601bab3e4 (patch) | |
tree | cac438648ae828c96641e2755b740d21aabbb610 /themes/sourcehut/mailbox.html | |
parent | d60aca0e5c19de2e250f2166957640db0ad3d24d (diff) | |
download | alps-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/mailbox.html')
-rw-r--r-- | themes/sourcehut/mailbox.html | 2 |
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 }} |