From 07cabc91dbe29a92f4651b5e4f716122642b44c1 Mon Sep 17 00:00:00 2001 From: Franco Masotti Date: Wed, 15 Sep 2021 18:18:32 +0200 Subject: [PATCH] Changed tag list in homepage. --- _includes/tag_list.html | 2 +- _layouts/default.html | 7 ++++++- _pages/index.md | 2 ++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/_includes/tag_list.html b/_includes/tag_list.html index ced1f0f..da9095a 100644 --- a/_includes/tag_list.html +++ b/_includes/tag_list.html @@ -74,7 +74,7 @@ {% if freq >= site.tag_list.score.min %} {% capture link %}{{ site.baseurl }}/tags/#{{ tagg }}{% endcapture %}
  • - {{ tag_name }} [{{ freq }}] + [{{ freq | prepend: '000' | slice: -3, 3 }}] {{ tag_name }}
  • {% endif %} {% else %} diff --git a/_layouts/default.html b/_layouts/default.html index acf0ac2..9545485 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -18,7 +18,12 @@ layout: compress {% endif %} {% if site.anchor_headings.enabled %} - {% include anchor_headings.html html=content anchorBody=site.anchor_headings.character anchorClass="hAnchor" h_min=site.anchor_headings.min h_max=site.anchor_headings.max beforeHeading=site.anchor_headings.before %} + {% if page.enable_markdown %} + {% assign cnt = content | markdownify %} + {% else %} + {% assign cnt = content %} + {% endif %} + {% include anchor_headings.html html=cnt anchorBody=site.anchor_headings.character anchorClass="hAnchor" h_min=site.anchor_headings.min h_max=site.anchor_headings.max beforeHeading=site.anchor_headings.before %} {% else %} {{ content }} {% endif %} diff --git a/_pages/index.md b/_pages/index.md index 0a23d85..11f87be 100644 --- a/_pages/index.md +++ b/_pages/index.md @@ -8,6 +8,8 @@ excerpt: none ## Tags +*Sorted by decreasing frequency >= {{ site.tag_list.score.min }}:* + {% include tag_list.html %} ## Years