{
  "$schema": "./.schemas/page.schema.json",
  "title": "Legato Updates",
  "icon": "sparkles",
  "sources": {
    "changelog": {
      "url": "https://legatobar.com/changelog/feed.xml",
      "auth": {
        "type": "none"
      },
      "format": "feed",
      "every": "6h"
    }
  },
  "cards": [
    {
      "id": "releases",
      "type": "list",
      "label": "Releases",
      "max_items": 4,
      "items": [],
      "source": {
        "ref": "changelog",
        "map": {
          "items": {
            "each": "items",
            "limit": 24,
            "fields": {
              "text": {
                "template": "{title|clip:60}"
              },
              "subtitle": {
                "if": {
                  "path": "summary",
                  "exists": true
                },
                "then": {
                  "template": "{summary|clip:90}"
                }
              },
              "detail": {
                "if": {
                  "path": "published",
                  "exists": true
                },
                "then": {
                  "template": "{published|month_year}"
                }
              },
              "url": "url"
            }
          }
        }
      }
    }
  ]
}
