diff --git a/widgets/steam-top-sellers/README.md b/widgets/steam-top-sellers/README.md index ac158d1..0de339f 100644 --- a/widgets/steam-top-sellers/README.md +++ b/widgets/steam-top-sellers/README.md @@ -7,31 +7,54 @@ title: Steam Top Sellers cache: 12h url: https://store.steampowered.com/api/featuredcategories?cc=us + options: + limit: 5 template: | + {{ $items := .JSON.Array "top_sellers.items" }} + {{ $limit := .Options.IntOr "limit" 0 }} + {{ $count := 0 }} - - - {{ end }} - {{ end }} - - ``` + +## Options + +The widget supports the following options: + +- `limit` (integer) + - Maximum number of unique items to display. + - `0` (or omitting the option) shows all available items. \ No newline at end of file