Remove .html extension from list of tags in terminal

This commit is contained in:
Guilherme Garcia 2022-01-28 00:45:09 -03:00
parent 1715ee1d60
commit 9a94374fcd

2
bb.sh
View file

@ -869,7 +869,7 @@ list_tags() {
[[ -f "$i" ]] || break
nposts=$(grep -c "<\!-- text begin -->" "$i")
tagname=${i#"$prefix_tags"}
tagname=${tagname#.html}
tagname=${tagname%.html}
((nposts > 1)) && word=$template_tags_posts || word=$template_tags_posts_singular
line="$tagname # $nposts # $word"
lines+=$line\\n