Skip to content

Commit

Permalink
chore(website): Update website/Makefile
Browse files Browse the repository at this point in the history
Co-authored-by: Eddie Knight <[email protected]>
Signed-off-by: Brandt Keller <[email protected]>
  • Loading branch information
brandtkeller and Eddie Knight authored Jun 20, 2024
1 parent 163c792 commit d553fab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ deps:
if [ "$$file" = "/_index.md" -o "$$base_name" = "README" ]; then \
continue; \
fi; \
title_case=$$(echo "$$base_name" | sed -e 's/-/ /g' -e 's/\b\(.\)/\u\1/g'); \
title_case=$$(echo "$$base_name" | sed -e 's/-/ /g' | awk '{for(i=1;i<=NF;i++) if($$i !~ /^[A-Z]/) $$i=toupper(substr($$i,1,1)) substr($$i,2)}1'); \
text_to_prepend="---\ntitle: \"$$title_case\"\n---\n"; \
sed -i "1s/^/$$text_to_prepend/" "$$file"; \
done
Expand Down

0 comments on commit d553fab

Please sign in to comment.