Fix ToC condition
parent
b968355d26
commit
729c72beaf
|
@ -40,7 +40,7 @@
|
||||||
<br /><br />
|
<br /><br />
|
||||||
{{ 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 (or (not .Params.notoc) (gt .WordCount 600)) }}
|
{{ if (and (not .Params.notoc) (gt .WordCount 600)) }}
|
||||||
<div class="message is-info">
|
<div class="message is-info">
|
||||||
<div class="message-header">Sommaire</div>
|
<div class="message-header">Sommaire</div>
|
||||||
<!-- Appreciate this horrible trick, even a 2000's HTML generator won't generate such code -->
|
<!-- Appreciate this horrible trick, even a 2000's HTML generator won't generate such code -->
|
||||||
|
|
Loading…
Reference in New Issue