Reduce avatar size

This commit is contained in:
Vri 🌈 2023-01-18 13:28:32 +01:00
parent 52f3cfc3c2
commit eb78d65022
Signed by: vrifox
GPG key ID: D40098E5B60B2197
3 changed files with 6 additions and 1 deletions

View file

Before

Width:  |  Height:  |  Size: 296 KiB

After

Width:  |  Height:  |  Size: 296 KiB

View file

@ -6,6 +6,7 @@ defaultContentLanguage: de
defaultContentLanguageInSubdir: true
params:
avatar: "2021_vrifox-avatar.png"
displayName: "Vri 🌈"
username: "@vrifox"
staticSiteGenerator: "Hugo"

View file

@ -2,7 +2,11 @@
<nav id="sidebar">
<header>
<img id="avatar" src="/2021_vrifox-avatar.png">
{{ with .Site.Params.avatar }}
{{ $avatar := resources.Get . }}
{{ $avatar := $avatar.Resize "200x webp" }}
<img id="avatar" alt="{{ $.Site.Params.displayName }}" src="{{ $avatar.RelPermalink }}" />
{{ end }}
<p id="name">{{ .Site.Params.displayName }}</p>
<div id="information">
<ul id="social-links">