2024-04-27 21:10:24 +02:00
|
|
|
{{ template "widget-base.html" . }}
|
|
|
|
|
|
|
|
{{ define "widget-content" }}
|
2024-05-17 13:15:44 +02:00
|
|
|
<ul class="list list-gap-14 collapsible-container" data-collapse-after="{{ .CollapseAfter }}">
|
2024-05-16 21:41:50 +02:00
|
|
|
{{ range .Items }}
|
|
|
|
<li>
|
2024-04-27 21:10:24 +02:00
|
|
|
<a class="size-title-dynamic color-primary-if-not-visited" href="{{ .Link }}" target="_blank" rel="noreferrer">{{ .Title }}</a>
|
2024-05-19 18:52:17 +02:00
|
|
|
<ul class="list-horizontal-text flex-nowrap">
|
2024-05-16 21:41:50 +02:00
|
|
|
<li {{ dynamicRelativeTimeAttrs .PublishedAt }}></li>
|
2024-05-19 18:52:17 +02:00
|
|
|
<li class="min-width-0">
|
|
|
|
<a class="block text-truncate" href="{{ .ChannelURL }}" target="_blank" rel="noreferrer">{{ .ChannelName }}</a>
|
|
|
|
</li>
|
2024-04-27 21:10:24 +02:00
|
|
|
</ul>
|
|
|
|
</li>
|
2024-08-10 19:01:54 +02:00
|
|
|
{{ else }}
|
|
|
|
<li>{{ .NoItemsMessage }}</li>
|
2024-04-27 21:10:24 +02:00
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
{{ end }}
|