diff options
| author | eltrac <hi@eltr.ac> | 2026-03-30 16:40:39 +0800 |
|---|---|---|
| committer | eltrac <hi@eltr.ac> | 2026-03-30 16:40:39 +0800 |
| commit | 244aec878d52ca6c52dc7d08aaf20be8c9132551 (patch) | |
| tree | 928ea512944bc2f43abbf2be285f3599aaeb06e8 | |
| parent | 742028462e66cecd6065490ed319c34596955839 (diff) | |
fix: fetch webmention data more frequently
| -rw-r--r-- | layouts/_partials/posts/action-menu.html | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/layouts/_partials/posts/action-menu.html b/layouts/_partials/posts/action-menu.html index f8234272..51dfcc2d 100644 --- a/layouts/_partials/posts/action-menu.html +++ b/layouts/_partials/posts/action-menu.html @@ -2,7 +2,10 @@ {{ $currentPagePath := .RelPermalink }} {{ $webmentions_url := .Site.Params.webmention.src }} -{{ with try (resources.GetRemote $webmentions_url) }} +{{ $cacheKey := print $webmentions_url (now.Format "2006-01-02-1504") }} +{{ $opts := dict "key" $cacheKey }} + +{{ with try (resources.GetRemote $webmentions_url $opts) }} {{ with .Err }} {{ errorf "%s" . }} |
