Auflistung der Links in widget ausgelagert und auf Index-Seite mit angezeigt
This commit is contained in:
parent
14a466e315
commit
2a1daf1f52
4 changed files with 36 additions and 16 deletions
16
layouts/partials/widget/links.html
Normal file
16
layouts/partials/widget/links.html
Normal file
|
@ -0,0 +1,16 @@
|
|||
<ul>
|
||||
{{ range (where . "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…
Add table
Add a link
Reference in a new issue