From 91c7fbe30ad5a85d7b005fd8324908d9646d7ab3 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Tue, 29 Oct 2019 17:05:28 +0800 Subject: [PATCH] Simplified trending tags structure. --- _includes/panel.html | 44 ++++++++++++++++++++------------------- assets/css/_src/main.scss | 2 +- 2 files changed, 24 insertions(+), 22 deletions(-) diff --git a/_includes/panel.html b/_includes/panel.html index f495fe1..0b48774 100644 --- a/_includes/panel.html +++ b/_includes/panel.html @@ -21,32 +21,34 @@ {% endfor %} {% if lastmod_list.size > 0 %} -
-

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

- +
{% endif %} -
-

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

-
+
+ +

+ {{- site.data.label.panel.trending_tags -}} +

+ +
{% capture tags_array %} {% for tag in site.tags %} {{ tag[1] | size }}:{{ tag[0] | replace: ' ', '-' }} @@ -57,7 +59,6 @@ {% assign count = 0 %} {% assign trends = tags_array | split: " " | sort | reverse %} -
{% for trend in trends %} {% assign count = count | plus: 1 %} {% assign tag = trend | split: ":" | last %} @@ -66,19 +67,20 @@ {% break %} {% endif %} {% endfor %} -
-
-
-
+
-{% if page.layout == 'post' and site.toc and page.toc %} -
+
+ + + + {% if page.layout == 'post' and site.toc and page.toc %} +

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

-{% endif %} + {% endif %} \ No newline at end of file diff --git a/assets/css/_src/main.scss b/assets/css/_src/main.scss index f6213aa..1ffaef7 100644 --- a/assets/css/_src/main.scss +++ b/assets/css/_src/main.scss @@ -431,7 +431,7 @@ footer .license a { border: 1px solid #e9ecef; border-radius: .8rem; padding: .3rem .5rem; - margin-bottom: .3rem; + margin: 0 .35rem .5rem 0; } #access-tags .post-tag:hover {