~aasg/haunted-blog

a25ec30125aded165d574b1d10493e5ad3013ca4 — Aluísio Augusto Silva Gonçalves 1 year, 2 months ago dc7248c
haunt: Only render TOCs in the post page
1 files changed, 4 insertions(+), 2 deletions(-)

M haunt.scm
M haunt.scm => haunt.scm +4 -2
@@ 168,7 168,9 @@
              ,(author-hcard post)
              ,(prefix-sxml " in reply to " (cite-if-reply post)))
            (h1 (@ (class "p-name")) ,(post-ref post 'title))
            (div (@ (class "e-content")) ,(post-sxml post))
            (div (@ (class "e-content"))
                 ,(when (post-ref post 'toc) (sxml-toc (post-sxml post)))
                 ,(post-sxml post))
            (p (@ (class "post-comments"))
              ,(link-as "View comments to this post" (post-comments-url post))
              " or "


@@ 270,7 272,7 @@
      '((author . "Aluísio Augusto Silva Gonçalves")
        (author-profile . "https://aasg.name"))
      #:file-filter (lambda (filename) (not (aasg-file-fragment? filename)))
      #:readers (map with-toc (list pandoc-reader))
      #:readers (list pandoc-reader)
      #:builders (list (blog #:theme aasg-post-theme
                             #:collections `(("Home" "index.html" ,posts/reverse-chronological)))
                       (uncollected-pages "pages" aasg-page-theme)