From f16d08a510725a98b75b7495c0fe6750535ef82f Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Sun, 16 May 2021 16:58:49 -0400 Subject: [PATCH] Switch from HsYaml -> yaml The 'tags' feature in template is broken. cf. https://github.com/snapframework/heist/issues/128 One way to address it is to specify a frontmatter.yaml default for Aeson.Value, to ensure that all fields are present regardless of what's in the individual Markdown file. --- docs/.emabook/templates/_default.tpl | 14 ++++----- emabook.cabal | 3 +- flake.lock | 6 ++-- src/Data/YAML/ToJSON.hs | 43 --------------------------- src/Emabook/Model.hs | 44 +++++++++++++--------------- src/Main.hs | 15 ++++------ 6 files changed, 38 insertions(+), 87 deletions(-) delete mode 100644 src/Data/YAML/ToJSON.hs diff --git a/docs/.emabook/templates/_default.tpl b/docs/.emabook/templates/_default.tpl index f7a682db5..faea0a8a6 100644 --- a/docs/.emabook/templates/_default.tpl +++ b/docs/.emabook/templates/_default.tpl @@ -69,17 +69,17 @@ - + + +
- + - + - +
-
- - +