Browse Source

Changed tag list in homepage.

dev
Franco Masotti 10 months ago
parent
commit
07cabc91db
Signed by: frnmst
GPG Key ID: 24116ED85666780A
  1. 2
      _includes/tag_list.html
  2. 7
      _layouts/default.html
  3. 2
      _pages/index.md

2
_includes/tag_list.html

@ -74,7 +74,7 @@
{% if freq >= site.tag_list.score.min %}
{% capture link %}{{ site.baseurl }}/tags/#{{ tagg }}{% endcapture %}
<li>
<a href="{{ link }}">{{ tag_name }} [{{ freq }}]</a>
<a href="{{ link }}">[{{ freq | prepend: '000' | slice: -3, 3 }}] {{ tag_name }}</a>
</li>
{% endif %}
{% else %}

7
_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 %}

2
_pages/index.md

@ -8,6 +8,8 @@ excerpt: none
## Tags
*Sorted by decreasing frequency >= {{ site.tag_list.score.min }}:*
{% include tag_list.html %}
## Years

Loading…
Cancel
Save