From 4a4ac690cd705388e8e03c0457c0bc93a513460e Mon Sep 17 00:00:00 2001 From: mirnawong1 Date: Mon, 4 Nov 2024 16:55:34 +0000 Subject: [PATCH] add truncate --- styles/custom/BlogTruncate.yml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 styles/custom/BlogTruncate.yml diff --git a/styles/custom/BlogTruncate.yml b/styles/custom/BlogTruncate.yml new file mode 100644 index 00000000000..59a9d3645a3 --- /dev/null +++ b/styles/custom/BlogTruncate.yml @@ -0,0 +1,7 @@ +extends: existence +message: "Blog posts in the `/blogs` directory must contain a `` comment." +level: error + +path: /blogs/.*\.md$ +scope: file +match: ""