From 266b736e6b5ada03f19f86a2ad977162b269fff7 Mon Sep 17 00:00:00 2001 From: Brandon Rozek Date: Mon, 16 May 2022 15:38:00 -0400 Subject: [PATCH] Resized header image to lower amount of bandwidth --- layouts/index.html | 5 ++++- layouts/partials/header.html | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/layouts/index.html b/layouts/index.html index 7cd44b9..7192cd3 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -6,7 +6,10 @@
- Photo of {{ .Site.Params.Author }} + {{ $profile_image := resources.GetRemote (printf "%s/img/%s" .Site.BaseURL .Site.Params.avatar) }} + {{ $profile_width := 250 }} + {{ $profile_image := $profile_image.Resize (printf "%dx" $profile_width) }} + Photo of {{ .Site.Params.Author }}
diff --git a/layouts/partials/header.html b/layouts/partials/header.html index fc5d2ab..3a9e43c 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -25,7 +25,10 @@

{{ .Site.Params.Author }}

- {{ .Site.Params.avatarDescription }} + {{ $profile_image := resources.GetRemote (printf "%s/img/%s" .Site.BaseURL .Site.Params.avatar) }} + {{ $profile_width := 100 }} + {{ $profile_image := $profile_image.Resize (printf "%dx" $profile_width) }} + Photo of {{ .Site.Params.Author }}