summaryrefslogtreecommitdiff
path: root/layouts/_partials/components/microformats.html
diff options
context:
space:
mode:
authorBigCoke233 <hi@guhub.cn>2025-12-30 09:37:39 +0800
committerBigCoke233 <hi@guhub.cn>2025-12-30 09:37:39 +0800
commit2dad7c8665577bd3d5bbf7d188e31b8ddcd57173 (patch)
tree82d6fa6a65861409e245e1dbdd30e7f5b2e2fc72 /layouts/_partials/components/microformats.html
parent57ca66a0b0a108ea7c59e4072f4dd800ef258b93 (diff)
feat: add asset base url to image urls without a domain
Former-commit-id: 355618d7cc7035573648ae55cf563203dd2363f3
Diffstat (limited to 'layouts/_partials/components/microformats.html')
-rw-r--r--layouts/_partials/components/microformats.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_partials/components/microformats.html b/layouts/_partials/components/microformats.html
index 9ef180e7..c3057a14 100644
--- a/layouts/_partials/components/microformats.html
+++ b/layouts/_partials/components/microformats.html
@@ -1,6 +1,6 @@
<div class="hidden h-card pt">
<img class="u-photo icon" alt="{{ .Site.Params.author.name }}"
- src="{{ .Site.Params.author.avatar }}" />
+ src="{{ printf "%s%s" .Site.Params.assetBaseUrl .Site.Params.author.avatar }}" />
<a class="p-name u-url" href="{{ .Site.BaseURL }}"
>{{ .Site.Params.author.name }}</a
>