]> git.plutz.net Git - shellwiki/commitdiff
--link option links to _tag_ search
authorPaul Hänsch <paul@plutz.net>
Tue, 19 Mar 2024 11:14:40 +0000 (12:14 +0100)
committerPaul Hänsch <paul@plutz.net>
Tue, 19 Mar 2024 11:14:40 +0000 (12:14 +0100)
macros/taglist

index 576655b29af1037d2bbc0d667ac52a8f081427f9..d959b42f107b6587addc26474ad249c5fcd2bb88 100755 (executable)
@@ -61,7 +61,7 @@ if [ "$taglist" ]; then
   | { [ "$cloud" ] && sort -n || sort -k 3; } \
   | while read -r junk inc tag; do
     if [ "$link" ]; then
-      printf '<li class=tag inc=%i rel=%i ><a href="./[search]?q=%s">#%s</a></li>\n' \
+      printf '<li class=tag inc=%i rel=%i ><a href="./[search]?q=%%23%s">#%s</a></li>\n' \
              "$inc" "$((9 * inc / max))" "$(URL "$tag")" "$(HTML "$tag")"
     else
       printf '<li class=tag inc=%i rel=%i >#%s</li>\n' \