From 52981ca92cf9f8927347d4bdbbcb3db363122de3 Mon Sep 17 00:00:00 2001 From: Brandon Heath Date: Tue, 2 Jun 2020 18:18:44 -0500 Subject: [PATCH] Need to include a title field for the directory stub. (#59) Co-authored-by: Brandon Heath --- emitters/yaml_base_emitter.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/emitters/yaml_base_emitter.cpp b/emitters/yaml_base_emitter.cpp index 12c8c74..819cb0f 100644 --- a/emitters/yaml_base_emitter.cpp +++ b/emitters/yaml_base_emitter.cpp @@ -955,6 +955,7 @@ bool yaml_base_emitter::create_directory_stub(boost::filesystem::path p) { static const auto stub_json_k = json::object_t{ {"layout", "directory"}, + {"title", p.filename().string()}, }; output << front_matter_delimiter_k;