From 618ae9dcbc13895a8a265936b2ab3226fdbd1538 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Thu, 11 Jun 2020 21:16:44 +0800 Subject: [PATCH] Optimized the TOC position. --- _includes/panel.html | 5 ++--- assets/css/post.scss | 1 + 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/_includes/panel.html b/_includes/panel.html index d67d6a300..99b6d4cfb 100644 --- a/_includes/panel.html +++ b/_includes/panel.html @@ -57,16 +57,15 @@ {% for tag in trending_tags %} {% capture url %}/tags/{{ tag | downcase | url_encode }}/{% endcapture %} {{ tag | replace: '-', ' ' }} - {% endfor %} + {% endfor %} {% endif %} - {% if page.layout == 'post' and site.toc and page.toc %}
-

+

{{- site.data.label.panel.toc -}}

diff --git a/assets/css/post.scss b/assets/css/post.scss index 7bbfc6783..2fb260e21 100644 --- a/assets/css/post.scss +++ b/assets/css/post.scss @@ -127,6 +127,7 @@ $prompt-newer: "{{ site.data.label.post.button.next }}"; } #toc-wrapper { + margin-top: 7rem; border-left: 1px solid rgba(158, 158, 158, 0.17); position: -webkit-sticky; position: sticky;