Shrink down the avatar image on retro

This commit is contained in:
2024-02-20 09:42:24 +00:00
parent c59e7d42e1
commit ef14711b2f
2 changed files with 2 additions and 3 deletions

View File

@@ -11,9 +11,7 @@ priority = -1
[imaging]
bgColor = '#ffffff'
hint = 'photo'
quality = 85
resampleFilter = 'MitchellNetravali'
resampleFilter = 'CatmullRom'
[params]
company = "Leigh Hackspace CIC"

View File

@@ -12,6 +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") }}
{{ $avatar = $avatar.Resize "50x photo" }}
<img src="{{ $avatar.RelPermalink }}" alt="{{ .Params.author }}'s avatar">
</td>
<td>