mirror of
https://0xacab.org/anarsec/anarsec.guide.git
synced 2025-06-10 07:43:00 -04:00
toc relative hrefs
This commit is contained in:
parent
6d538524d5
commit
022d014abc
2 changed files with 3 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
base_url = "https://anarsec.guide"
|
||||
base_url = "https://www.anarsec.guide"
|
||||
title = "AnarSec"
|
||||
default_language = "en"
|
||||
theme = "DeepThought"
|
||||
|
|
|
@ -53,14 +53,14 @@
|
|||
{% for h1 in page.toc %}
|
||||
<li>
|
||||
<a id="link-{{h1.id}}" class="toc {% if loop.first %}is-active{% endif %}"
|
||||
href="{{ h1.permalink | safe }}">
|
||||
href="#{{ h1.id | safe }}">
|
||||
{{ h1.title }}
|
||||
</a>
|
||||
{% if h1.children %}
|
||||
<ul>
|
||||
{% for h2 in h1.children %}
|
||||
<li>
|
||||
<a id="link-{{h2.id}}" class="toc" href="{{ h2.permalink | safe }}">
|
||||
<a id="link-{{h2.id}}" class="toc" href="#{{ h2.id | safe }}">
|
||||
{{ h2.title }}
|
||||
</a>
|
||||
</li>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue