aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/context-profile.html
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-05-26 19:00:56 -0400
committertdro <tdro@noreply.example.com>2022-05-26 19:00:56 -0400
commitc424664740830fda3aa7cccaf2b44d6e4c2405f6 (patch)
treee842b2bf5817790e4ee3232e40cd251e07578c4d /themes/default/layouts/partials/context-profile.html
parent3d8a3b0f52a55e706187b83dafa292999fec8295 (diff)
downloadcanory-c424664740830fda3aa7cccaf2b44d6e4c2405f6.tar.gz
canory-c424664740830fda3aa7cccaf2b44d6e4c2405f6.tar.bz2
canory-c424664740830fda3aa7cccaf2b44d6e4c2405f6.zip
themes/default/layouts/partials/feeds-generate: Generate thumbnails
Diffstat (limited to 'themes/default/layouts/partials/context-profile.html')
-rw-r--r--themes/default/layouts/partials/context-profile.html14
1 files changed, 13 insertions, 1 deletions
diff --git a/themes/default/layouts/partials/context-profile.html b/themes/default/layouts/partials/context-profile.html
index 4124a8b..dad9f33 100644
--- a/themes/default/layouts/partials/context-profile.html
+++ b/themes/default/layouts/partials/context-profile.html
@@ -11,7 +11,19 @@
<a title="{{ $author.name }}" href="{{ .Site.BaseURL }}/{{ $author.user }}">
{{- end -}}
<picture>
- <img alt="{{ $author.name }}" src="{{ .Site.BaseURL }}/{{ $author.user }}/media/profile/picture.png" />
+ {{- with .Params.feed -}}
+ <img
+ width="64"
+ height="64"
+ alt="{{ .name }}"
+ src="{{ $.Site.BaseURL }}{{ .image }}"
+ />
+ {{ else }}
+ <img
+ alt="{{ $author.name }}"
+ src="{{ .Site.BaseURL }}/{{ $author.user }}/media/profile/picture.png"
+ />
+ {{ end }}
</picture>
</a>
</figure>