feat: Add featured content filtering for external data adapters

This commit is contained in:
Thomas A. Christensen II 2025-01-09 20:03:39 -06:00
parent b0b6d9b285
commit dac02d2179
Signed by: millironx
GPG key ID: 19A2EF3A3C0C18A9
2 changed files with 3 additions and 0 deletions

View file

@ -16,10 +16,12 @@
{{ $categories := slice "code" }} {{ $categories := slice "code" }}
{{ $people := slice "Thomas A. Christensen II" }} {{ $people := slice "Thomas A. Christensen II" }}
{{ $link := .html_url }} {{ $link := .html_url }}
{{ $featured := (gt .stars_count 0) }}
{{ $params := dict {{ $params := dict
"categories" $categories "categories" $categories
"people" $people "people" $people
"link" $link "link" $link
"featured" $featured
}} }}
{{ $page := dict {{ $page := dict
"content" $content "content" $content

View file

@ -20,6 +20,7 @@
"categories" $categories "categories" $categories
"people" $people "people" $people
"link" $link "link" $link
"featured" true
}} }}
{{ $page := dict {{ $page := dict
"content" $content "content" $content