mirror of
https://github.com/Brandon-Rozek/website-theme.git
synced 2024-11-24 17:16:31 -05:00
Moved avatar to assets as opposed to static
This commit is contained in:
parent
60bbe5949d
commit
f0383fe829
2 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@
|
||||||
<div class="h-card">
|
<div class="h-card">
|
||||||
<!-- avator -->
|
<!-- avator -->
|
||||||
<div class="avatar">
|
<div class="avatar">
|
||||||
{{ $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_width := 250 }}
|
||||||
{{ $profile_image := $profile_image.Resize (printf "%dx" $profile_width) }}
|
{{ $profile_image := $profile_image.Resize (printf "%dx" $profile_width) }}
|
||||||
<img class="avatarMask u-photo" width="{{ $profile_width }}" src="{{ $profile_image.RelPermalink }}" alt="Photo of {{ .Site.Params.Author }}" />
|
<img class="avatarMask u-photo" width="{{ $profile_width }}" src="{{ $profile_image.RelPermalink }}" alt="Photo of {{ .Site.Params.Author }}" />
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
|
|
||||||
<div class="h-card p-author">
|
<div class="h-card p-author">
|
||||||
<h2 class="p-name"><a class="author u-url" rel="me" href="{{ .Site.BaseURL }}">{{ .Site.Params.Author }}</a></h2>
|
<h2 class="p-name"><a class="author u-url" rel="me" href="{{ .Site.BaseURL }}">{{ .Site.Params.Author }}</a></h2>
|
||||||
{{ $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_width := 100 }}
|
||||||
{{ $profile_image := $profile_image.Resize (printf "%dx" $profile_width) }}
|
{{ $profile_image := $profile_image.Resize (printf "%dx" $profile_width) }}
|
||||||
<img class="avatarMask u-photo" width="{{ $profile_width }}" src="{{ $profile_image.RelPermalink }}" alt="Photo of {{ .Site.Params.Author }}" />
|
<img class="avatarMask u-photo" width="{{ $profile_width }}" src="{{ $profile_image.RelPermalink }}" alt="Photo of {{ .Site.Params.Author }}" />
|
||||||
|
|
Loading…
Reference in a new issue