Encapsulate summary in primary box

master
Quentin Duchemin 2021-10-15 01:48:35 +02:00
parent 7785f42494
commit b3142c85e7
Signed by: Chosto
GPG Key ID: 0547178FEEDE7D6B
1 changed files with 5 additions and 2 deletions

View File

@ -36,8 +36,11 @@
{{ end }} {{ end }}
<!-- Second, a summary before ToC, if it exists --> <!-- Second, a summary before ToC, if it exists -->
{{ with .Params.summary }} {{ with .Params.summary }}
{{ . }} <div class="message is-primary">
<br /><br /> <div class="message-body">
{{ . }}
</div>
</div>
{{ end }} {{ end }}
<!-- Then, ToC if text has more than 600 words and not explicitly asked not to --> <!-- Then, ToC if text has more than 600 words and not explicitly asked not to -->
{{ if (and (not .Params.notoc) (gt .WordCount 600)) }} {{ if (and (not .Params.notoc) (gt .WordCount 600)) }}