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 }}