mirror of
https://github.com/nikdoof/website-hugo.git
synced 2025-12-13 23:52:23 +00:00
Add original_url element to posts
This commit is contained in:
@@ -16,8 +16,10 @@
|
||||
<img src="{{ $avatar.RelPermalink }}" alt="{{ .Params.author }}'s avatar">
|
||||
</td>
|
||||
<td>
|
||||
<p><i>This is a post by <b>{{ .Params.author }}</b>.<br>Originally
|
||||
posted <b>{{ .PublishDate | time.Format ":date_full" }}</b></i></p>
|
||||
<p><i>This is a post by <b>{{ .Params.author }}</b>.<br>Posted <b>{{ .PublishDate | time.Format ":date_full" }}</b></i>
|
||||
{{ if .Params.original_url }}<br>Originally posted at <a href="{{ .Params.original_url }}" rel="canonical">{{
|
||||
.Params.original_url }}</a>{{ end }}
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -4,6 +4,8 @@ subtitle: ""
|
||||
date: {{ .Date }}
|
||||
tags: []
|
||||
draft: true
|
||||
author:
|
||||
author: # Name to show on the post
|
||||
author_email: # used for Gravatar icon
|
||||
listing_image: # Image to use in the post list on the website
|
||||
original_url: # If cross-posted from a blog, link to the original.
|
||||
---
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user