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:
parent
d60aca0e5c
commit
ae9e70b5ad
1 changed files with 1 additions and 1 deletions
|
@ -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 }}
|
||||
|
|
Loading…
Reference in a new issue