Compare commits

...

2 Commits

Author SHA1 Message Date
Quentin Duchemin b5d1e31d1b
Try to have better newline 2021-10-15 01:42:16 +02:00
Quentin Duchemin 729c72beaf
Fix ToC condition 2021-10-15 01:41:01 +02:00
2 changed files with 7 additions and 1 deletions

View File

@ -15,6 +15,12 @@ permalinks:
# For about section, just use title
about: /:title
markup:
goldmark:
renderer:
# Render newlines as <br>
hardWraps: true
# Disable all privacy unfriendly stuff
privacy:
disqus:

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 -->