浏览代码

Fixed additional characters in all_tags.html

Carlos Fenollosa 11 年之前
父节点
当前提交
efbb68dfb4
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      bb.sh

+ 2 - 1
bb.sh

@@ -703,7 +703,8 @@ all_tags() {
         echo -n "."
         nposts="$(grep -c "<\!-- text begin -->" $i)"
         tagname="$(echo $i | cut -c $((${#prefix_tags}+3))- | sed 's/\.html//g')"
-        echo "<li><a href="$i">$tagname</a> &mdash; $nposts $template_tags_posts</li>" >> "$contentfile"
+        i="`clean_filename $i`"
+        echo "<li><a href=\"$i\">$tagname</a> &mdash; $nposts $template_tags_posts</li>" >> "$contentfile"
     done
     echo ""
     echo "</ul>" >> "$contentfile"