Add original_url element to posts

This commit is contained in:
2024-03-13 16:14:27 +00:00
parent ee1a3c6481
commit 4bdc505167
7 changed files with 20 additions and 8 deletions

View File

@@ -17,8 +17,10 @@
</figure>
<div class="media-content">
<div class="content">
<p class="is-size-5 is-italic">This is a post by <b>{{ .Params.author }}</b>.<br />Originally
posted <b>{{ .PublishDate | time.Format ":date_full" }}</b></p>
<p class="is-size-6 is-italic">This is a post by <b>{{ .Params.author }}</b>.<br />
Posted <b>{{ .PublishDate | time.Format ":date_full" }}</b>
{{ if .Params.original_url }}<br/>Originally posted at <a href="{{ .Params.original_url }}" rel="canonical">{{ .Params.original_url }}</a>{{ end }}
</p>
</div>
</div>
</article>