From 053634c77f36878351fdc0e7304d48fab86dcd53 Mon Sep 17 00:00:00 2001 From: kisfenyo Date: Thu, 22 Jan 2026 15:13:02 +0100 Subject: [PATCH] updated tandoor widget with swiping --- glance-system/glance-kisfenyo.yaml | 122 ++++++++++++++++++++++++----- 1 file changed, 101 insertions(+), 21 deletions(-) diff --git a/glance-system/glance-kisfenyo.yaml b/glance-system/glance-kisfenyo.yaml index 3c59f3b..6c7ea08 100644 --- a/glance-system/glance-kisfenyo.yaml +++ b/glance-system/glance-kisfenyo.yaml @@ -791,55 +791,135 @@ data: {{ $tandoor := .Options.StringOr "tandoor_url" "https://tandoor.dooplex.hu" }} {{ $items := .JSON.Array "items" }} {{ $total := .JSON.Int "total_recipes" }} {{ $date := .JSON.String "date" }} + {{ $count := len $items }}
- Today’s picks ({{ $total }} total) + Today's picks ({{ $count }} total) Open Tandoor
- {{ if lt (len $items) 1 }} + {{ if lt $count 1 }}
No recipes returned.
{{ else }} -
- {{ range $i, $r := $items }} - {{ $name := $r.String "name" }} - {{ $img := $r.String "image" }} - {{ $url := $r.String "url" }} - {{ $cook := $r.String "cook_url" }} +
+
+ {{ range $i, $r := $items }} + {{ $name := $r.String "name" }} + {{ $img := $r.String "image" }} + {{ $url := $r.String "url" }} + {{ $cook := $r.String "cook_url" }} - + {{ if gt $count 1 }} +
+ {{ range $i, $r := $items }} + + {{ end }} +
+ {{ end }} {{ end }}
+ {{ if gt $count 1 }} + + {{ end }} + - type: bookmarks title: Productivity Self-Hosted groups: