commit 119e884e72ea2f1e778caa01310461dfd6605bd6
parent 170d9f1f8011e9d01ab36716a14d2e8268479fbe
Author: Hugo Soucy <hugo@soucy.cc>
Date: Sun, 25 Sep 2022 12:14:55 -0400
Preprocess markdown in the summary properties
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/satelito/model.lua b/satelito/model.lua
@@ -50,6 +50,11 @@ function model.set(filepath, config, contentdir)
pagemeta.content = file.read(filepath)
end
+ -- Summary
+ if pagemeta.summary then
+ pagemeta.summary = markdown(pagemeta.summary)
+ end
+
-- List (and Feed)
if file.is_index(filepath) and pagemeta.list ~= false then
pagemeta.list = file.get_collection(filepath, contentdir)