From d38e97ee0b168aafc0f790b9436ec86e8af2abc2 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Fri, 19 Jan 2018 14:33:49 +0100 Subject: [PATCH] Link to #id instead of permalink in TOC This makes table of content links also work in deploy previews. --- blog/templates/page.html | 4 ++-- blog/templates/second-edition/page.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/blog/templates/page.html b/blog/templates/page.html index 66b6d9cf..8a65cfe7 100644 --- a/blog/templates/page.html +++ b/blog/templates/page.html @@ -12,10 +12,10 @@

Table of Contents

    {% for h2 in page.toc %}
  1. - {{ h2.title | safe }} + {{ h2.title | safe }} {% if h2.children %}
      {% for h3 in h2.children %}
    1. - {{ h3.title | safe }} + {{ h3.title | safe }}
    2. {% endfor %}
    {% endif %}
  2. {% endfor %} diff --git a/blog/templates/second-edition/page.html b/blog/templates/second-edition/page.html index c89d5b0b..bd29134a 100644 --- a/blog/templates/second-edition/page.html +++ b/blog/templates/second-edition/page.html @@ -12,10 +12,10 @@

    Table of Contents

      {% for h2 in page.toc %}
    1. - {{ h2.title | safe }} + {{ h2.title | safe }} {% if h2.children %}
        {% for h3 in h2.children %}
      1. - {{ h3.title | safe }} + {{ h3.title | safe }}
      2. {% endfor %}
      {% endif %}
    2. {% endfor %}