Browse Source

Don't escape permalinks

index-subcmd
Pirmin Kalberer GitHub 7 years ago
parent
commit
5bef6644e6
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      README.md

+ 2
- 2
README.md View File

@@ -146,12 +146,12 @@ Here is an example on how to make a ToC using that:
<ul> <ul>
{% for h1 in page.toc %} {% for h1 in page.toc %}
<li> <li>
<a href="{{h1.permalink}}">{{ h1.title }}</a>
<a href="{{h1.permalink | safe}}">{{ h1.title }}</a>
{% if h1.children %} {% if h1.children %}
<ul> <ul>
{% for h2 in h1.children %} {% for h2 in h1.children %}
<li> <li>
<a href="{{h2.permalink}}">{{ h2.title }}</a>
<a href="{{h2.permalink | safe}}">{{ h2.title }}</a>
</li> </li>
{% endfor %} {% endfor %}
</ul> </ul>


Loading…
Cancel
Save