diff --git a/_includes/panel.html b/_includes/panel.html index 27c7e49..feafb87 100644 --- a/_includes/panel.html +++ b/_includes/panel.html @@ -4,7 +4,7 @@ MIT License --> -
+
{% assign lastmod_list = "" | split: "" %} @@ -43,37 +43,18 @@ {% endif %}
-

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

-
- {% capture tags_array %} - {% for tag in site.tags %} - {{ tag[1] | size }}:{{ tag[0] | replace: ' ', '-' }} - {% endfor %} - {% endcapture %} + {% include trending-tags.html %} +
+
- {% assign MAX = 10 %} - {% assign count = 0 %} - {% assign trends = tags_array | split: " " | sort | reverse %} - - {% for trend in trends %} - {% assign count = count | plus: 1 %} - {% assign tag = trend | split: ":" | last %} - - {% if count >= MAX %} - {% break %} - {% endif %} - {% endfor %} - -
-
{% if page.layout == 'post' and site.toc and page.toc %} -
+

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

@@ -81,4 +62,4 @@
{% endif %} -
\ No newline at end of file + diff --git a/_includes/related-posts.html b/_includes/related-posts.html index 175e122..e5bf055 100644 --- a/_includes/related-posts.html +++ b/_includes/related-posts.html @@ -52,7 +52,7 @@
{{ post.date | date: POST_DATE }} - + {{ post.date | date_to_xmlschema }}

{{ post.title }}

diff --git a/_includes/search-loader.html b/_includes/search-loader.html new file mode 100644 index 0000000..c840a06 --- /dev/null +++ b/_includes/search-loader.html @@ -0,0 +1,27 @@ + + + +{% capture result_elem %} +
+ {title} + +

{snippet}

+
+{% endcapture %} + + \ No newline at end of file diff --git a/_includes/search-results.html b/_includes/search-results.html index d9a87f6..d6d6157 100644 --- a/_includes/search-results.html +++ b/_includes/search-results.html @@ -3,13 +3,12 @@ © 2017-2019 Cotes Chung MIT License --> -
-
-
-

Search Results

-
-
    -
    +
    +
    +
    +

    Trending Tags

    + {% include trending-tags.html %}
    +
    \ No newline at end of file diff --git a/_includes/search.html b/_includes/search.html deleted file mode 100644 index 04ee7c3..0000000 --- a/_includes/search.html +++ /dev/null @@ -1,13 +0,0 @@ - - - \ No newline at end of file diff --git a/_includes/sidebar.html b/_includes/sidebar.html index eb52b06..c0e29aa 100644 --- a/_includes/sidebar.html +++ b/_includes/sidebar.html @@ -4,8 +4,8 @@ MIT License --> -