Fix ToC condition

master
Quentin Duchemin 2021-10-15 01:41:01 +02:00
parent b968355d26
commit 729c72beaf
Signed by: Chosto
GPG Key ID: 0547178FEEDE7D6B
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@
<br /><br />
{{ end }}
<!-- 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-header">Sommaire</div>
<!-- Appreciate this horrible trick, even a 2000's HTML generator won't generate such code -->