Allow to add TOC using shortcode (<!--toc-->). TOC add button in text editor.
This commit is contained in:
danpros 2024-02-20 22:47:45 +07:00
commit 6c8c1271c2
11 changed files with 100 additions and 8 deletions

View file

@ -28,7 +28,7 @@
<h1 class="entry-title"><?php echo $p->title; ?></h1>
<?php } ?>
</header>
<div class="entry-content">
<div class="entry-content post-<?php echo $p->date;?>">
<?php echo $p->body; ?>
</div>
<style>.related {padding-bottom:2em;}.related p {margin-top:0;margin-bottom:0.5em;} .related ul {margin-left:1em;}</style>