diff --git a/org/_posts/2024-10-22-how_i_blog_with_emacs.org b/org/_posts/2024-10-22-how_i_blog_with_emacs.org index 166753f..44fb8a8 100644 --- a/org/_posts/2024-10-22-how_i_blog_with_emacs.org +++ b/org/_posts/2024-10-22-how_i_blog_with_emacs.org @@ -323,7 +323,7 @@ If you have ever written a bash script before, you will probably figure out this #+BEGIN_SRC bash #!/bin/bash - TAGS=$(cat _posts/*.html | grep 'tags:' | sed -E 's/tags: (.)/\1/' | tr ' ' '\n' | sort -u) + TAGS=$(cat _posts/*.html | grep '^tags:' | sed -E 's/tags: (.)/\1/' | tr ' ' '\n' | sort -u) mkdir -p tags diff --git a/scripts/create_tag_pages.sh b/scripts/create_tag_pages.sh index 04820cc..55b7fd9 100755 --- a/scripts/create_tag_pages.sh +++ b/scripts/create_tag_pages.sh @@ -1,6 +1,6 @@ #!/bin/bash -TAGS=$(cat _posts/*.html | grep 'tags:' | sed -E 's/tags: (.)/\1/' | tr ' ' '\n' | sort -u) +TAGS=$(cat _posts/*.html | grep '^tags:' | sed -E 's/tags: (.)/\1/' | tr ' ' '\n' | sort -u) mkdir -p tags