Skip to content
Snippets Groups Projects
Unverified Commit 140cd48a authored by Olivia Simonet's avatar Olivia Simonet Committed by GitHub
Browse files

Ajout d'options aux enfants d'une page (#836)

parent a6579fbd
No related branches found
No related tags found
No related merge requests found
......@@ -120,6 +120,10 @@ params:
index:
truncate_description: 200 # Set to 0 to disable truncate
layout: grid # grid | list
options:
image: true
main_summary: false
summary: true
papers:
default_image: false
sidebar:
......
{{ $options := site.Params.pages.index.options }}
{{ $page_class := "" }}
{{ if .Params.bodyclass }}
{{- $page_class = printf "block-page-%s" .Params.bodyclass }}
......@@ -9,10 +10,7 @@
{{- partial (printf "blocks/templates/pages/%s.html" site.Params.pages.index.layout) (dict
"pages" .Params.children
"heading_level" 2
"options" (dict
"summary" true
"image" (eq site.Params.pages.index.layout "grid")
)
"options" $options
) }}
</div>
</div>
......
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