feat: Add featured content filtering for external data adapters
This commit is contained in:
parent
b0b6d9b285
commit
dac02d2179
2 changed files with 3 additions and 0 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue