Skip to content

Commit 63a1799

Browse files
committed
Fix front matter test for renamed blog files
1 parent 8da8e87 commit 63a1799

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

front_matter/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ mod tests {
5959
.unwrap()
6060
.chain(fs::read_dir(repo_root.join("content/inside-rust")).unwrap())
6161
.map(|p| p.unwrap().path())
62-
.filter(|p| p.extension() == Some("md".as_ref()));
62+
.filter(|p| p.is_file() && p.file_name() != Some("_index.md".as_ref()));
6363

6464
for post in posts {
6565
let content = fs::read_to_string(&post).unwrap();

0 commit comments

Comments
 (0)