aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 }}