Add inline link marker to sidebar

This commit is contained in:
arne 2022-10-04 12:21:27 +02:00
commit ade31972b3
2 changed files with 10 additions and 0 deletions

View file

@ -10,7 +10,9 @@
{% endblock %} {% endblock %}
{% block sidebar %} {% block sidebar %}
<div class="sticky">
<h2>Content</h2> <h2>Content</h2>
{{ content | toc | safe }} {{ content | toc | safe }}
<a href="{{ "/" | url }}">Go Back Home</a> <a href="{{ "/" | url }}">Go Back Home</a>
</div>
{% endblock %} {% endblock %}

View file

@ -329,6 +329,14 @@ footer {
li { li {
line-height: 16px * 1.5; line-height: 16px * 1.5;
a:before {
content: '#';
position: absolute;
transform: translateX(-100%);
padding-right: .3em;
color: inherit;
opacity: .3;
} }
} }
} }