Skip to content

Commit 4107a82

Browse files
committed
Optimized the TOC position.
1 parent f40cce9 commit 4107a82

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

_includes/panel.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,15 @@ <h3 data-toc-skip>
5757
{% for tag in trending_tags %}
5858
{% capture url %}/tags/{{ tag | downcase | url_encode }}/{% endcapture %}
5959
<a class="post-tag" href="{{ url | relative_url }}">{{ tag | replace: '-', ' ' }}</a>
60-
{% endfor %}
60+
{% endfor %}
6161
</div>
6262
</div>
6363
{% endif %}
64-
6564
</div> <!-- .access -->
6665

6766
{% if page.layout == 'post' and site.toc and page.toc %}
6867
<div id="toc-wrapper" class="pl-0 pr-4 mb-5">
69-
<h3 data-toc-skip class="pl-3 pt-2 mb-3">
68+
<h3 data-toc-skip class="pl-3 pt-2 mb-2">
7069
{{- site.data.label.panel.toc -}}
7170
</h3>
7271
<nav id="toc" data-toggle="toc"></nav>

assets/css/post.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ $prompt-newer: "{{ site.data.label.post.button.next }}";
127127
}
128128

129129
#toc-wrapper {
130+
margin-top: 7rem;
130131
border-left: 1px solid rgba(158, 158, 158, 0.17);
131132
position: -webkit-sticky;
132133
position: sticky;

0 commit comments

Comments
 (0)