1. 19 Apr, 2018 1 commit
  2. 17 Feb, 2015 1 commit
    • doshitan's avatar
      Add table of contents support · 67745296
      doshitan authored
      Not perfect, but it will work. What we do is have a special table of contents
      compiler that makes a version of each post whose content is just the TOC. We
      then stuff that content into a field to make it available to the templates.
      For the TOC numbering to work right each post should always start at first
      level headers, the main compiler now bumps each header in the post down a
      level (e.g. an h1/# becomes and h2/##) before rendering. That makes it so the
      rendered post content doesn't have a bunch of top-level headers in the page,
      but the TOC compiler still sees all top-level headers and breaks them out into
      their own sections in the TOC generated markup.
  3. 26 Aug, 2013 1 commit