sourcehut theme: fix nil on emails without a text part

P.a. to 50e131244a which solved
https://todo.sr.ht/~emersion/alps/100

Closes: https://todo.sr.ht/~emersion/alps/102
This commit is contained in:
наб 2020-07-13 15:48:47 +02:00 committed by Simon Ser
parent d60aca0e5c
commit ae9e70b5ad
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48

View file

@ -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 }}