Shortcode für Links eingebaut
This commit is contained in:
parent
1d6a3d70bc
commit
14a466e315
1 changed files with 18 additions and 0 deletions
18
layouts/shortcodes/link.html
Normal file
18
layouts/shortcodes/link.html
Normal 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>
|
Loading…
Reference in a new issue