diff --git a/main.cpp b/main.cpp index 9c60a6c..53cc8f1 100755 --- a/main.cpp +++ b/main.cpp @@ -40,7 +40,8 @@ namespace route { std::filesystem::path postsDir("posts"); std::vector> futures; for (auto const& entry : std::filesystem::directory_iterator{postsDir}) { - futures.emplace_back(std::async(std::launch::async, process_file, entry.path())); + if (entry.path().extension() == ".md") + futures.emplace_back(std::async(std::launch::async, process_file, entry.path())); }