diff options
author | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2023-08-30 11:14:08 +0700 |
---|---|---|
committer | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2023-08-30 11:14:08 +0700 |
commit | 46b1e6c785c9e15e721faa54d6e979c5c226c1a3 (patch) | |
tree | 9d569f1350ba99f173cbed460d0bf94ac5c5440e /add-front-matter.sh | |
parent | 19445e4c308ed01d4168e39991c3cac2cfc9d922 (diff) | |
download | blog-46b1e6c785c9e15e721faa54d6e979c5c226c1a3.tar.gz |
Restore revived feed
Also remove unused files
Diffstat (limited to 'add-front-matter.sh')
-rwxr-xr-x | add-front-matter.sh | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/add-front-matter.sh b/add-front-matter.sh deleted file mode 100755 index 69e0b7b..0000000 --- a/add-front-matter.sh +++ /dev/null @@ -1,19 +0,0 @@ -if [[ $1 == "temp" ]]; then - exit -fi - -title=$(grep -m1 '#' $1 | grep -o "[^#]*"); -new_path=$(echo $1 | sed "s/\//_/g" | sed "s/\._/.\//g") - -{ echo -e "---\ntitle: $title"; -echo -e "categories: [ conlang ]"; -echo -e "no_feed: true"; -echo -e "disable_feed: true\n---\n"; -echo "Go to [Table of Contents](/conlang/)" -cat $1; } > temp -mv temp $1 -# flatten -if [[ $1 != "./_index.md" ]]; then - mv $1 $new_path -fi -find -type d | grep "\./[a-z]*$" | rm -rf |