Add ToC at beginning of posts
parent
2a44e3f3c5
commit
f7fa67b81e
|
@ -24,6 +24,11 @@
|
||||||
<section class="column is-7">
|
<section class="column is-7">
|
||||||
<div>
|
<div>
|
||||||
<article>
|
<article>
|
||||||
|
<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 horrible code -->
|
||||||
|
<div class="message-body pt-1">{{ .TableOfContents | replaceRE "<a" "<a style='text-decoration:none;'" | safeHTML }}</div>
|
||||||
|
</div>
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
</article>
|
</article>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue