diff --git a/components/site/tests/site.rs b/components/site/tests/site.rs index e1a0f0df..2c6d3c46 100644 --- a/components/site/tests/site.rs +++ b/components/site/tests/site.rs @@ -44,7 +44,7 @@ fn can_parse_site() { let posts_section = library.sections.get(&posts_path.join("_index.md")).unwrap(); assert_eq!(posts_section.subsections.len(), 2); - assert_eq!(posts_section.pages.len(), 9); // 10 with 1 draft == 9 + assert_eq!(posts_section.pages.len(), 10); // 11 with 1 draft == 10 assert_eq!(posts_section.ancestors, vec![index_section.file.relative.clone()]); // Make sure we remove all the pwd + content from the sections diff --git a/test_site/content/posts/ignored.md b/test_site/content/posts/ignored.md index 54e0556a..136b63cf 100644 --- a/test_site/content/posts/ignored.md +++ b/test_site/content/posts/ignored.md @@ -3,4 +3,4 @@ title = "This should not be picked up" date = 2019-07-23 +++ -Don't pick me up. +Don't pick me up, I'm ignored via ignored_content in config.toml.