This commit is contained in:
traveler 2025-12-30 16:11:32 -06:00
parent 66bf8385b3
commit 0581d9b0ba

View file

@ -19,7 +19,7 @@ pages:
- type: custom-api - type: custom-api
title: "Upcoming (Google)" title: "Upcoming (Google)"
cache: 15m cache: 15m
url: "https://cal.netgrimoire.com/events" url: "http://glance-ical-api:8076/events"
parameters: parameters:
url: "https://calendar.google.com/calendar/ical/45ffju8vmrv8dhlrpik4l8gra0%40group.calendar.google.com/private-62a0078e0e810c53843cf7fbb9aab287/basic.ics" url: "https://calendar.google.com/calendar/ical/45ffju8vmrv8dhlrpik4l8gra0%40group.calendar.google.com/private-62a0078e0e810c53843cf7fbb9aab287/basic.ics"
limit: 10 limit: 10
@ -34,16 +34,35 @@ pages:
{{ range $i, $e := $events }} {{ range $i, $e := $events }}
{{ $name := $e.String "name" }} {{ $name := $e.String "name" }}
{{ $start := $e.String "start" | parseTime "rfc3339" }} {{ $start := $e.String "start" | parseTime "rfc3339" }}
{{ $end := $e.String "end" | parseTime "rfc3339" }}
{{ $allDay := $e.Bool "all_day" }}
{{ $ongoing := $e.Bool "ongoing" }}
<li {{ if ge $i 6 }}class="collapsible-item"{{ end }}> <li {{ if ge $i 6 }}class="collapsible-item"{{ end }}>
<div class="flex items-center justify-between gap-10"> <div class="flex items-center justify-between gap-10">
<div class="size-h3 color-highlight block text-truncate" title="{{ $name }}">{{ $name }}</div> <div class="block text-truncate" title="{{ $name }}">
<div class="size-h3 color-primary" style="white-space:nowrap;" {{ $start | toRelativeTime }}></div> <div class="size-h3 color-highlight">{{ $name }}</div>
<div class="size-h5 color-primary" style="opacity:.85; margin-top:2px;">
{{ if $allDay }}
{{ $start | formatTime "Mon Jan 2" }} {{ $end | formatTime "Mon Jan 2" }}
{{ else }}
{{ $start | formatTime "Mon Jan 2 3:04 PM" }} {{ $end | formatTime "3:04 PM" }}
{{ end }}
</div>
</div>
<div style="white-space:nowrap;">
{{ if $ongoing }}
<span style="padding:2px 8px; border-radius:999px; background:var(--surface-2);">Ongoing</span>
{{ else }}
<span class="size-h5 color-primary" {{ $start | toRelativeTime }}></span>
{{ end }}
</div>
</div> </div>
</li> </li>
{{ end }} {{ end }}
</ul> </ul>
{{ end }} {{ end }}
- type: releases - type: releases
title: "Releases" title: "Releases"
show-source-icon: true show-source-icon: true