From 8941bbf9137d55912ba830fdc535949350449200 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Wed, 21 Apr 2021 17:35:15 +0200 Subject: Show category icon in project previews --- scripts/metadata_filter.lua | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'scripts') diff --git a/scripts/metadata_filter.lua b/scripts/metadata_filter.lua index ad2bb83..8eedc63 100644 --- a/scripts/metadata_filter.lua +++ b/scripts/metadata_filter.lua @@ -155,10 +155,9 @@ end function resolve_category(categories, category) if categories and category then category = pandoc.utils.stringify(category) - return pandoc.MetaMap({ - id = pandoc.MetaString(category), - name = pandoc.MetaString(categories[category] or category) - }) + data = pandoc.MetaMap(categories[category]) + data.id = pandoc.MetaString(category) + return data end end -- cgit v1.2.3-70-g09d2