Shortcode für Links eingebaut

This commit is contained in:
mdn 2023-01-09 00:13:42 +01:00
parent 1d6a3d70bc
commit 14a466e315

View file

@ -0,0 +1,18 @@
{{ $dataName := .Get "data" }}
<ul>
{{ range (where (index .Site.Data (split $dataName "/")) "visible" 1) }}
<li>
{{ .name }}
<ul>
{{ range (where .urls "visible" 1) }}
<li>
<a href="{{ .url }}" target="{{- .target -}}" alt="{{- .description }}">{{ .name }}</a>
<br/>
{{ .description }}
</li>
{{ end }}
</ul>
</li>
{{ end }}
</ul>