Add inline link marker to sidebar
This commit is contained in:
parent
3cf08376fb
commit
ade31972b3
2 changed files with 10 additions and 0 deletions
|
|
@ -10,7 +10,9 @@
|
|||
{% endblock %}
|
||||
|
||||
{% block sidebar %}
|
||||
<div class="sticky">
|
||||
<h2>Content</h2>
|
||||
{{ content | toc | safe }}
|
||||
<a href="{{ "/" | url }}">Go Back Home</a>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
|
|
|||
|
|
@ -329,6 +329,14 @@ footer {
|
|||
|
||||
li {
|
||||
line-height: 16px * 1.5;
|
||||
|
||||
a:before {
|
||||
content: '#';
|
||||
position: absolute;
|
||||
transform: translateX(-100%);
|
||||
padding-right: .3em;
|
||||
color: inherit;
|
||||
opacity: .3;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue