From f0383fe829c20c07e796b32faad3318ffa84f534 Mon Sep 17 00:00:00 2001 From: Brandon Rozek Date: Sat, 21 May 2022 00:32:46 -0400 Subject: [PATCH] Moved avatar to assets as opposed to static --- layouts/index.html | 2 +- layouts/partials/header.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/index.html b/layouts/index.html index 7192cd3..5376d07 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -6,7 +6,7 @@
- {{ $profile_image := resources.GetRemote (printf "%s/img/%s" .Site.BaseURL .Site.Params.avatar) }} + {{ $profile_image := resources.Get (printf "img/%s" .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 3a9e43c..c6acb69 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -25,7 +25,7 @@

{{ .Site.Params.Author }}

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