Skip to content
Snippets Groups Projects
Commit 5eeeadcc authored by alexisben's avatar alexisben
Browse files

prepare alternate layout for block page

parent 0ca13f68
No related branches found
No related tags found
No related merge requests found
{{ $show_descriptions := .show_descriptions }}
{{ $show_images := .show_images }}
<div class="cards">
{{ range .pages }}
{{- $page := partial "GetPageByUrl" .page -}}
{{ with $page }}
<article class="card">
<h3>
<a href="{{- .Permalink -}}">
{{- partial "PrepareHTML" .Title -}}
</a>
</h3>
{{ if and $show_descriptions .Params.summary }}
{{ if site.Params.pages.index.truncate_description }}
<p>{{ partial "GetTruncateContent" ( dict
"text" .Params.summary
"length" site.Params.pages.index.truncate_description
) }}</p>
{{ else }}
<p>{{ partial "PrepareText" .Params.summary }}</p>
{{ end }}
{{ end }}
<p class="more meta" aria-hidden="true">{{- i18n "commons.more" -}}</p>
{{ if $show_images }}
{{- partial "pages/page-media.html" . -}}
{{ end }}
</article>
{{- end -}}
{{ end }}
</div>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment