more than 10 to only show relevant repos
This commit is contained in:
parent
a96e8dc18c
commit
11bb89ccda
1 changed files with 2 additions and 2 deletions
|
|
@ -5,7 +5,7 @@ date: 2022-08-28
|
||||||
tags: ['fetch', 'feature']
|
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.
|
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 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.`
|
Endpoint editable in `_data/github.js.`
|
||||||
|
|
||||||
{% for repository in github %}
|
{% for repository in github %}
|
||||||
{% if repository.stargazers_count > 0 %}
|
{% if repository.stargazers_count > 10 %}
|
||||||
|
|
||||||
## [{{ repository.name }}]({{ repository.html_url }})
|
## [{{ repository.name }}]({{ repository.html_url }})
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue