mirror of
https://github.com/nikdoof/website-hugo.git
synced 2025-12-13 12:12:18 +00:00
Shrink down the avatar image on retro
This commit is contained in:
@@ -11,9 +11,7 @@ priority = -1
|
||||
|
||||
[imaging]
|
||||
bgColor = '#ffffff'
|
||||
hint = 'photo'
|
||||
quality = 85
|
||||
resampleFilter = 'MitchellNetravali'
|
||||
resampleFilter = 'CatmullRom'
|
||||
|
||||
[params]
|
||||
company = "Leigh Hackspace CIC"
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user