32 lines
641 B
HTML
32 lines
641 B
HTML
|
{{ define "intro" }}
|
||
|
{{ if ne .Content "" }}
|
||
|
{{ partial "snippets/content" (dict "content" .Content) }}
|
||
|
{{ end }}
|
||
|
{{ end }}
|
||
|
|
||
|
{{ define "content" }}
|
||
|
{{ $title := .Title }}
|
||
|
|
||
|
{{ $p := .Pages }}
|
||
|
|
||
|
{{ $paginator := $p }}
|
||
|
|
||
|
{{ if $p }}
|
||
|
<div class="links_wrapper">
|
||
|
{{ range $p }}
|
||
|
<div class="links" style="display: flex; flex-direction: column;">
|
||
|
<a href="{{ .Params.Link }}" class="t">
|
||
|
{{ .Title }}
|
||
|
</a>
|
||
|
<a href="{{ .Params.Link }}" class="p">
|
||
|
{{ .Params.Link }}
|
||
|
</a>
|
||
|
<a href="{{ .Params.Link }}" class="s">
|
||
|
{{ .Content }}
|
||
|
</a>
|
||
|
</div>
|
||
|
{{ end }}
|
||
|
</div>
|
||
|
{{ end }}
|
||
|
{{ end }}
|