mirror of
https://github.com/maikka39/Personal-Website.git
synced 2026-10-02 14:46:25 +00:00
Convert all images to webp when possible
This commit is contained in:
@@ -2,9 +2,7 @@
|
||||
<main role="main" style="">
|
||||
<div>
|
||||
{{- if .Site.Params.Portrait.Path }}
|
||||
{{- $img := imageConfig (printf "static/%s" .Site.Params.Portrait.Path) }}
|
||||
<img src="{{ .Site.Params.Portrait.Path }}" class="circle" alt="{{ .Site.Params.Portrait.Alt }}"
|
||||
width="{{ $img.Width }}" height="{{ $img.Height }}" style="max-width:{{ .Site.Params.Portrait.Size }}" />
|
||||
{{- partial "image.html" (dict "path" .Site.Params.Portrait.Path "alt" .Site.Params.Portrait.Alt "class" "circle" "style" (printf "max-width:%s" .Site.Params.Portrait.Size ))}}
|
||||
{{- end }}
|
||||
|
||||
<h1>{{ .Site.Title }}</h1>
|
||||
|
||||
Reference in New Issue
Block a user