From 598da3ff80955b5fd4d9b4222ddd0da38530c903 Mon Sep 17 00:00:00 2001 From: madrilene Date: Fri, 24 Oct 2025 11:48:30 +0200 Subject: [PATCH] update Post with fetched content --- src/posts/2022/2022-08-17-post-with-fetched.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/posts/2022/2022-08-17-post-with-fetched.md b/src/posts/2022/2022-08-17-post-with-fetched.md index 9ec3d46..1e13ffb 100644 --- a/src/posts/2022/2022-08-17-post-with-fetched.md +++ b/src/posts/2022/2022-08-17-post-with-fetched.md @@ -8,17 +8,19 @@ tags: ['fetch', 'feature'] [Eleventy Fetch](https://www.11ty.dev/docs/plugins/fetch/) fetches and caches resources -- at configurable intervals. This is an example of fetching external data. -In this case, my public repositories (with more than zero stargazer) and a cache duration of 1 day. +In this case, my public repositories (with more than 20 stargazer) and a cache duration of 1 day. Endpoint editable in `_data/github.js.` {% for repository in github %} -{% if repository.stargazers_count > 10 %} +{% if repository.stargazers_count > 20 %} -## [{{ repository.name }}]({{ repository.html_url }}) +

{{ repository.name }}

+ +{{ repository.html_url }} **{{ repository.stargazers_count }} GitHub stars** {{ repository.description }} {% endif %} -{% endfor %} +{% endfor %} \ No newline at end of file