mirror of
https://github.com/nikdoof/website-hugo.git
synced 2025-12-14 16:12:16 +00:00
Switch to RelPermalink to support http/https sites
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
<img src="{{ $image.RelPermalink}}">
|
||||
</td>
|
||||
<td>
|
||||
<p><a href="{{ .Permalink }}">{{.Title}}</a> - {{ .Params.author }}<br />
|
||||
<p><a href="{{ .RelPermalink }}">{{.Title}}</a> - {{ .Params.author }}<br />
|
||||
{{ dateFormat "Jan 2, 2006" .PublishDate }}
|
||||
</p>
|
||||
<p><i>{{ .Summary }}</i></p>
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<td>
|
||||
{{ $avatar := resources.GetRemote (print "https://www.gravatar.com/avatar/" (sha256 .Params.author_email)) |
|
||||
resources.Copy (print "images/avatars/" (sha256 .Params.author_email) ".jpg") }}
|
||||
<img src="{{ $avatar.Permalink }}">
|
||||
<img src="{{ $avatar.RelPermalink }}">
|
||||
</td>
|
||||
<td>
|
||||
<p class="is-size-5 is-italic">This is a post by <b>{{ .Params.author }}</b>.<br />Originally
|
||||
|
||||
Reference in New Issue
Block a user