diff --git a/_scripts/tags.sh b/_scripts/tags.sh index 0d95b7cc4..168dd259d 100755 --- a/_scripts/tags.sh +++ b/_scripts/tags.sh @@ -27,7 +27,7 @@ done # this constructs a list of pages that have a certain tag for TAG in `cat ${TAGFILE}` ; do - FILELIST=`find . -name \*.md | xargs grep -l ^tags:.*${TAG} | sort | uniq ` + FILELIST=`find . -name \*.md | xargs grep -wl ^tags:.*${TAG} | sort | uniq ` for FILE in ${FILELIST}; do NAME=`grep title: $FILE | cut -d : -f 2 | cut -b 2-` LINK=${FILE:1:$((${#FILE}-4))}