diff --git a/lib/v2/utgd/category.js b/lib/v2/utgd/category.js index 101d052b8..b3182ccaf 100644 --- a/lib/v2/utgd/category.js +++ b/lib/v2/utgd/category.js @@ -47,6 +47,7 @@ module.exports = async (ctx) => { title: item.title, link: `${rootUrl}/article/${item.id}`, description: art(path.join(__dirname, 'templates/description.art'), { + membership: item.article_for_membership, image: item.article_image, description: md.render(item.article_description), }), diff --git a/lib/v2/utgd/templates/description.art b/lib/v2/utgd/templates/description.art index 38f14bf4b..8ce3b4866 100644 --- a/lib/v2/utgd/templates/description.art +++ b/lib/v2/utgd/templates/description.art @@ -2,6 +2,10 @@
{{ /if }} +{{ if membership }} +
+UNTAG Premium +{{ /if }} {{ if description }} {{@ description }} -{{ /if }} \ No newline at end of file +{{ /if }} diff --git a/lib/v2/utgd/timeline.js b/lib/v2/utgd/timeline.js index 9646e88c2..c484cca52 100644 --- a/lib/v2/utgd/timeline.js +++ b/lib/v2/utgd/timeline.js @@ -35,6 +35,7 @@ module.exports = async (ctx) => { title: item.title, link: `${rootUrl}/article/${item.id}`, description: art(path.join(__dirname, 'templates/description.art'), { + membership: data.article_for_membership, image: item.article_image, description: md.render(data.article_description), }), diff --git a/lib/v2/utgd/topic.js b/lib/v2/utgd/topic.js index 8716cc57f..b4b9e7e3e 100644 --- a/lib/v2/utgd/topic.js +++ b/lib/v2/utgd/topic.js @@ -50,6 +50,7 @@ module.exports = async (ctx) => { title: item.title, link: `${rootUrl}/article/${item.id}`, description: art(path.join(__dirname, 'templates/description.art'), { + membership: item.article_for_membership, image: item.article_image, description: md.render(detailResponse.data.article_description), }),