Encapsulate summary in primary box
parent
7785f42494
commit
b3142c85e7
|
@ -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)) }}
|
||||||
|
|
Loading…
Reference in New Issue