From 11bb89ccda8ed3eacf3251ff16c29db0da2e1ac3 Mon Sep 17 00:00:00 2001 From: madrilene Date: Thu, 8 Feb 2024 09:46:58 +0100 Subject: [PATCH] more than 10 to only show relevant repos --- src/posts/2022-08-17-post-with-fetched.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/posts/2022-08-17-post-with-fetched.md b/src/posts/2022-08-17-post-with-fetched.md index 2bbbfb8..9ec3d46 100644 --- a/src/posts/2022-08-17-post-with-fetched.md +++ b/src/posts/2022-08-17-post-with-fetched.md @@ -5,7 +5,7 @@ date: 2022-08-28 tags: ['fetch', 'feature'] --- -[Eleventy Fetch](https://www.11ty.dev/docs/plugins/fetch/) fetches and caches resources - at configurable intervals. +[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. @@ -13,7 +13,7 @@ In this case, my public repositories (with more than zero stargazer) and a cache Endpoint editable in `_data/github.js.` {% for repository in github %} -{% if repository.stargazers_count > 0 %} +{% if repository.stargazers_count > 10 %} ## [{{ repository.name }}]({{ repository.html_url }})