mirror of
https://github.com/nikdoof/website-hugo.git
synced 2025-12-14 10:22:21 +00:00
29 lines
867 B
HTML
29 lines
867 B
HTML
{{ define "title" }}
|
|
{{ .Title }}
|
|
{{ end }}
|
|
|
|
{{ define "subtitle" }}
|
|
{{ .Params.subtitle }}
|
|
{{ end }}
|
|
|
|
{{ define "content" }}
|
|
<table border="0">
|
|
<tr>
|
|
<td>
|
|
{{ $avatar := resources.GetRemote (print "https://www.gravatar.com/avatar/" (sha256 .Params.author_email)) |
|
|
resources.Copy (print "images/avatars/" (sha256 .Params.author_email) ".jpg") }}
|
|
{{ $avatar = $avatar.Resize "50x photo" }}
|
|
<img src="{{ $avatar.RelPermalink }}" alt="{{ .Params.author }}'s avatar">
|
|
</td>
|
|
<td>
|
|
<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>
|
|
|
|
{{ .Content }}
|
|
|
|
{{ end }} |