aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/author-card.html
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-07-10 00:09:15 -0400
committertdro <tdro@noreply.example.com>2022-07-10 00:09:15 -0400
commit56afea8037ba5476ac2338503e77d5a1fd82fb7f (patch)
treee27ee9928b6ccec3179fef8b6687ece085fa62d0 /themes/default/layouts/partials/author-card.html
parent734ca16734e01d4b2808e8468ecf7f863a5e32c5 (diff)
downloadcanory-56afea8037ba5476ac2338503e77d5a1fd82fb7f.tar.gz
canory-56afea8037ba5476ac2338503e77d5a1fd82fb7f.tar.bz2
canory-56afea8037ba5476ac2338503e77d5a1fd82fb7f.zip
themes/default/layouts/partials/function-paths: Collect paths functions here
Diffstat (limited to 'themes/default/layouts/partials/author-card.html')
-rw-r--r--themes/default/layouts/partials/author-card.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/themes/default/layouts/partials/author-card.html b/themes/default/layouts/partials/author-card.html
index 3e4bcca..7c88dfb 100644
--- a/themes/default/layouts/partials/author-card.html
+++ b/themes/default/layouts/partials/author-card.html
@@ -11,14 +11,14 @@
<a title="{{ .Data.name }}" href="{{ "" | absURL }}/{{ .Data.user }}/#">
<picture>
{{- with $image }}
- {{- $image = .Content | resources.FromString (print (partial "function-paths-media.html") "/" $.Data.user "/" (path.Base .)) }}
+ {{- $image = .Content | resources.FromString (print (partial "function-paths.html" "media") "/" $.Data.user "/" (path.Base .)) }}
<source srcset="{{- ($image.Fit (print $dimensions " webp")).RelPermalink -}}" type="image/webp" />
{{- end }}
<img
alt="{{ .Data.name }}"
{{- if fileExists $path }}
{{ with $image }}
- {{- $image = (.Content | resources.FromString (print (partial "function-paths-media.html") "/" $.Data.user "/" (path.Base .))).Fit $dimensions -}}
+ {{- $image = (.Content | resources.FromString (print (partial "function-paths.html" "media") "/" $.Data.user "/" (path.Base .))).Fit $dimensions -}}
width="{{ $image.Width }}"
height="{{ $image.Height }}"
src="{{ $image.RelPermalink }}"
@@ -38,7 +38,7 @@
<h3><a title="{{ .Data.name }}" href="{{ "" | absURL }}/{{ .Data.user }}/#">@{{ .Data.user }}</a></h3>
</micro-header>
<a title="Follow with RSS Reader" href="{{ "" | absURL }}/{{ .Data.user }}/rss.xml">
- {{ safeHTML (readFile (print (partial "function-paths-static.html") "/icons/feather/rss.svg")) }}
+ {{ safeHTML (readFile (print (partial "function-paths.html" "static") "/icons/feather/rss.svg")) }}
<span>Follow</span>
</a>
</micro-summary>