Commit b591f44e authored by Jamie Tanna's avatar Jamie Tanna

Merge branch 'defect/mention-publish' into 'fork'

Fix: Mentions don't always have a `published` date

See merge request !30
parents e9e8541c a0a103ba
......@@ -4,7 +4,10 @@
<ul>
{{ range . }}
<li>
<a href="{{ .author.url }}">{{ .author.name }}</a> mentioned this post at <a href="{{ .url }}">{{ .url }}</a> on {{ dateFormat "02 January 2006" .published }}.
<a href="{{ .author.url }}">{{ .author.name }}</a> mentioned this post at <a href="{{ .url }}">{{ .url }}</a>
{{ if .published }}
on {{ dateFormat "02 January 2006" .published }}
{{ end }}.
</li>
{{ end }}
</ul>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment