2024-04-27 21:10:24 +02:00
|
|
|
{{ template "widget-base.html" . }}
|
|
|
|
|
|
|
|
{{ define "widget-content" }}
|
|
|
|
<ul class="list list-gap-24 list-with-separator">
|
|
|
|
{{ range .Groups }}
|
|
|
|
<li class="bookmarks-group"{{ if .Color }} style="--bookmarks-group-color: {{ .Color.AsCSSValue }}"{{ end }}>
|
|
|
|
{{ if ne .Title "" }}<div class="bookmarks-group-title size-h3 margin-bottom-3">{{ .Title }}</div>{{ end }}
|
|
|
|
<ul class="list list-gap-2">
|
|
|
|
{{ range .Links }}
|
2024-05-03 06:38:40 +02:00
|
|
|
<li class="flex items-center gap-10">
|
|
|
|
{{ if ne "" .Icon }}
|
|
|
|
<div class="bookmarks-icon-container">
|
|
|
|
<img class="bookmarks-icon{{ if .IsSimpleIcon }} simple-icon{{ end }}" src="{{ .Icon }}" alt="" loading="lazy">
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
<a href="{{ .URL }}" class="bookmarks-link {{ if .HideArrow }}bookmarks-link-no-arrow {{ end }}color-highlight size-h4" {{ if not .SameTab }}target="_blank"{{ end }} rel="noreferrer">{{ .Title }}</a>
|
|
|
|
</li>
|
2024-04-27 21:10:24 +02:00
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
{{ end }}
|