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
|
defaultContentLanguageInSubdir: true
|
||||||
|
|
||||||
params:
|
params:
|
||||||
|
avatar: "2021_vrifox-avatar.png"
|
||||||
displayName: "Vri 🌈"
|
displayName: "Vri 🌈"
|
||||||
username: "@vrifox"
|
username: "@vrifox"
|
||||||
staticSiteGenerator: "Hugo"
|
staticSiteGenerator: "Hugo"
|
||||||
|
|
|
@ -2,7 +2,11 @@
|
||||||
|
|
||||||
<nav id="sidebar">
|
<nav id="sidebar">
|
||||||
<header>
|
<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>
|
<p id="name">{{ .Site.Params.displayName }}</p>
|
||||||
<div id="information">
|
<div id="information">
|
||||||
<ul id="social-links">
|
<ul id="social-links">
|
||||||
|
|
Loading…
Reference in a new issue