From cd78f639dd60de2e28ae32feec68541665fedf90 Mon Sep 17 00:00:00 2001 From: gcmiao Date: Thu, 10 Sep 2020 21:09:23 +0200 Subject: [PATCH] Add a flag for allowing to disable aside.card_author.button --- layout/includes/widget/card_author.pug | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/layout/includes/widget/card_author.pug b/layout/includes/widget/card_author.pug index 5b1c8e4..8fe086c 100644 --- a/layout/includes/widget/card_author.pug +++ b/layout/includes/widget/card_author.pug @@ -27,9 +27,10 @@ .headline= _p('aside.categories') .length_num= site.categories.length - a#card-info-btn.button--animated(href=theme.aside.card_author.button.link) - i(class=theme.aside.card_author.button.icon) - span=theme.aside.card_author.button.text + if theme.aside.card_author.button.enable + a#card-info-btn.button--animated(href=theme.aside.card_author.button.link) + i(class=theme.aside.card_author.button.icon) + span=theme.aside.card_author.button.text if(theme.social) .card-info-social-icons.is-center