diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2023-03-04 01:46:45 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2023-03-04 01:46:45 +0300 |
commit | eeb84c5be16ecca239adae9c851bc0f7db0875a1 (patch) | |
tree | 9aa1056e643212e4c6133d90f38a1966f0fa35ca /handler/Auto.php | |
parent | 917d2622aa5fe748c1cda914eae94c12be743c42 (diff) |
blog: support ToC
Diffstat (limited to 'handler/Auto.php')
-rw-r--r-- | handler/Auto.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/handler/Auto.php b/handler/Auto.php index 361cc17..0656c44 100644 --- a/handler/Auto.php +++ b/handler/Auto.php @@ -65,10 +65,14 @@ class Auto extends RequestHandler { $s->title = $post->title; + if ($post->toc) + $s->setOptions(['wide' => true]); + return $s->renderPage('main/post', title: $post->title, id: $post->id, unsafe_html: $post->getHtml($this->isRetina(), \themes::getUserTheme()), + unsafe_toc_html: $post->getToc(), date: $post->getFullDate(), tags: $tags, visible: $post->visible, |