Skip to content
Snippets Groups Projects
Unverified Commit 70ec8488 authored by Alexis BENOIT's avatar Alexis BENOIT Committed by GitHub
Browse files

Gestion des classes custom des blocs (#532)

parent 438e60f8
No related branches found
Tags v6.1.7
No related merge requests found
{{- $class := "block" -}}
{{- $class = printf "%s block-%s" $class .template -}}
{{- if .title }}
{{ $class = printf "%s block-titled" $class }}
{{- end -}}
{{- if .data.layout -}}
{{- $class = printf "%s block-%s--%s" $class .template .data.layout -}}
{{- end -}}
{{- $class = printf "%s %s" $class .html_class -}}
{{- return $class -}}
\ 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