2024-04-27 21:10:24 +02:00
|
|
|
{{ template "widget-base.html" . }}
|
|
|
|
|
|
|
|
{{ define "widget-content-classes" }}widget-content-frameless{{ end }}
|
|
|
|
|
|
|
|
{{ define "widget-content" }}
|
|
|
|
<div class="carousel-container">
|
2024-05-10 11:10:13 +02:00
|
|
|
<div class="cards-horizontal carousel-items-container"{{ if ne 0.0 .CardHeight }} style="--rss-card-height: {{ .CardHeight }}rem;"{{ end }}>
|
2024-04-27 21:10:24 +02:00
|
|
|
{{ range .Items }}
|
2024-05-21 18:28:30 +02:00
|
|
|
<div class="card rss-card-2 widget-content-frame thumbnail-parent">
|
2024-04-27 21:10:24 +02:00
|
|
|
{{ if ne "" .ImageURL }}
|
2024-05-10 11:10:13 +02:00
|
|
|
<img class="rss-card-2-image thumbnail" loading="lazy" src="{{ .ImageURL }}" alt="">
|
2024-04-27 21:10:24 +02:00
|
|
|
{{ else }}
|
2024-05-10 11:10:13 +02:00
|
|
|
<svg class="rss-card-2-image" style="transform: scale(0.35) translateY(-25%)" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="var(--color-text-subdue)">
|
2024-04-27 21:10:24 +02:00
|
|
|
<path stroke-linecap="round" stroke-linejoin="round" d="m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909m-18 3.75h16.5a1.5 1.5 0 0 0 1.5-1.5V6a1.5 1.5 0 0 0-1.5-1.5H3.75A1.5 1.5 0 0 0 2.25 6v12a1.5 1.5 0 0 0 1.5 1.5Zm10.5-11.25h.008v.008h-.008V8.25Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z" />
|
|
|
|
</svg>
|
|
|
|
{{ end }}
|
2024-05-10 11:10:13 +02:00
|
|
|
<div class="rss-card-2-content padding-inline-widget">
|
|
|
|
<a href="{{ .Link }}" title="{{ .Title }}" class="block text-truncate color-primary-if-not-visited" target="_blank" rel="noreferrer">{{ .Title }}</a>
|
|
|
|
<ul class="list-horizontal-text flex-nowrap margin-top-5">
|
2024-05-16 21:41:50 +02:00
|
|
|
<li class="shrink-0" {{ dynamicRelativeTimeAttrs .PublishedAt }}></li>
|
2024-05-19 19:00:08 +02:00
|
|
|
<li class="min-width-0 text-truncate">{{ .ChannelName }}</li>
|
2024-04-27 21:10:24 +02:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|