Skip to content
Permalink
Browse files

Removes tag files before creation

  • Loading branch information...
abhin4v committed Jun 18, 2019
1 parent c601985 commit 01def0eda4f96fd73096e27ed72e7d4a9c425945
Showing with 1 addition and 0 deletions.
  1. +1 −0 bin/mk-site
@@ -21,6 +21,7 @@ git ls-files '*.md' '*.markdown' | grep -v README | grep -v "tags/" | bin/mk-ind

# generate notes list per tag
echo "Generating notes list per tag"
git rm -f 'tags/*.md'
mkdir -p tags
echo "$TAGS" | xargs -n1 -I{} sh -c "echo \"# {}\n\" > tags/{}.md"
echo "$TAGS" | xargs -n1 -I{} sh -c "git grep --name-only 'tags: .*{}' -- '*.md' '*.markdown' | bin/mk-index >> tags/{}.md"

0 comments on commit 01def0e

Please sign in to comment.
You can’t perform that action at this time.