From a26deffdc9071a5558996948fcecb71d582870d0 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Mon, 24 May 2021 20:39:48 +0200 Subject: Better file structure, remove categories as special concept --- scripts/metadata_filter.lua | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'scripts') diff --git a/scripts/metadata_filter.lua b/scripts/metadata_filter.lua index 914cd09..000fda6 100644 --- a/scripts/metadata_filter.lua +++ b/scripts/metadata_filter.lua @@ -120,15 +120,6 @@ function resolve_namespace(namespace) return {root = {id = root, ["is_" .. root] = true}, full = namespace} end -function resolve_category(categories, category) - if categories and category then - category = pandoc.utils.stringify(category) - data = categories[category] - data.id = category - return data - end -end - function prep_menu(active_id, main_menu) local active_item = nil @@ -208,8 +199,6 @@ function process(global, meta) meta.last_update = meta.date end - meta.category = resolve_category(global.categories[meta.namespace.root.id], meta.category) - if meta.menus and meta.menus.main then meta.menus.main = prep_menu(meta.namespace.root.id, meta.menus.main) end -- cgit v1.2.3-70-g09d2