Reduce avatar size
This commit is contained in:
parent
52f3cfc3c2
commit
eb78d65022
3 changed files with 6 additions and 1 deletions
Before Width: | Height: | Size: 296 KiB After Width: | Height: | Size: 296 KiB |
|
@ -6,6 +6,7 @@ defaultContentLanguage: de
|
|||
defaultContentLanguageInSubdir: true
|
||||
|
||||
params:
|
||||
avatar: "2021_vrifox-avatar.png"
|
||||
displayName: "Vri 🌈"
|
||||
username: "@vrifox"
|
||||
staticSiteGenerator: "Hugo"
|
||||
|
|
|
@ -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">
|
||||
|
|
Loading…
Reference in a new issue