mirror of
https://github.com/nikdoof/website-hugo.git
synced 2025-12-13 13:22:22 +00:00
25 lines
772 B
HTML
25 lines
772 B
HTML
{{ define "title" }}
|
|
{{ .Title }}
|
|
{{ end }}
|
|
|
|
{{ define "subtitle" }}
|
|
{{ .Params.subtitle }}
|
|
{{ end }}
|
|
|
|
{{ define "content" }}
|
|
<article class="media">
|
|
<figure class="media-left">
|
|
<p class="image is-64x64">
|
|
{{ $avatar := resources.GetRemote (print "https://www.gravatar.com/avatar/" (sha256 .Params.author_email)) | resources.Copy (print "images/avatars/" (sha256 .Params.author_email) ".jpg") }}
|
|
<img class="is-rounded" src="{{ $avatar.RelPermalink }}">
|
|
</p>
|
|
</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 {{ .PublishDate | time.Format ":date_full" }}</b></p>
|
|
</div>
|
|
</div>
|
|
</article>
|
|
{{ .Content }}
|
|
{{ end }} |