From 9099706fae0ac9a947b76e1b531afa84230ae44b Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Fri, 2 Dec 2022 18:04:34 +0300 Subject: [PATCH] Update rthk.hk.config.js --- sites/rthk.hk/rthk.hk.config.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sites/rthk.hk/rthk.hk.config.js b/sites/rthk.hk/rthk.hk.config.js index 30cbaa3c..c39de94d 100644 --- a/sites/rthk.hk/rthk.hk.config.js +++ b/sites/rthk.hk/rthk.hk.config.js @@ -44,14 +44,14 @@ module.exports = { } function parseIcon($item) { - return $item('*').data('p') + return $item('.single-wrap').data('p') } function parseCategories($item) { - let cate = $item('*').data('cate') + let cate = $item('.single-wrap').data('cate') || '' let [_, categories] = cate.match(/^\|(.*)\|$/) || [null, ''] - return categories.split('||') + return categories.split('||').filter(Boolean) } function parseTitle($item) {