maybe fixup links in the toc
This commit is contained in:
1 parent
bb04d91101
commit
c6a14a131e
2 files changed
+6
-4
No files matched your search
@@ -14,7 +14,8 @@
|
||||
{% for p in site.html_pages %}
|
||||
{% if p.url contains "toc.html" %}
|
||||
{% else %}
|
||||
<li><a href="{{ p.url }}">{{ p.title }}</a></li>
|
||||
{% assign p_url = p.url | absolute_url %}
|
||||
<li><a href="{{ p_url }}">{{ p.title }}</a></li>
|
||||
{% comment %}
|
||||
This fine mess is a workaround for inconsistent values of page.content.
|
||||
Relevant GH issues are:
|
||||
@@ -36,7 +37,7 @@
|
||||
{% assign curlyend = '}' %}
|
||||
{% assign p_content = p.content | markdownify | replace: "{%", "<!--" | replace: curlyend, "-->" %}
|
||||
{% endif %}
|
||||
{% include toc.html sanitize=true baseurl=p.url html=p_content %}
|
||||
{% include toc.html sanitize=true baseurl=p_url html=p_content %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
+3
-2
@@ -9,8 +9,9 @@ layout: notoc
|
||||
{% for page in site.html_pages %}
|
||||
{% if page.url contains "toc.html" %}
|
||||
{% else %}
|
||||
<li><a href="{{ page.url }}">{{ page.title }}</a></li>
|
||||
{% include toc.html baseurl=page.url sanitize=true html=page.content class="toc" %}
|
||||
{% assign p_url = page.url | absolute_url %}
|
||||
<li><a href="{{ p_url }}">{{ page.title }}</a></li>
|
||||
{% include toc.html baseurl=p_url sanitize=true html=page.content class="toc" %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
Reference in new issue
Block a user