From 02d7a59dd7519401c43d9a8ba42a5b69a917d277 Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Wed, 6 Dec 2023 21:54:42 +0800 Subject: [PATCH] [feat] license in wiki --- layout/_partial/main/article/article_footer.ejs | 6 +++++- source/css/_layout/tag-plugins/mark.styl | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/layout/_partial/main/article/article_footer.ejs b/layout/_partial/main/article/article_footer.ejs index 6006d1e..0b19ea7 100644 --- a/layout/_partial/main/article/article_footer.ejs +++ b/layout/_partial/main/article/article_footer.ejs @@ -52,7 +52,11 @@ function layoutDiv() { if (page.license != null) { license = markdown(page.license || theme.article.license) } else if (proj?.license != null) { - license = markdown(proj.license || theme.article.license) + if (proj.license == true) { + license = markdown(theme.article.license) + } else { + license = markdown(proj.license) + } } } if (license.length > 0) { diff --git a/source/css/_layout/tag-plugins/mark.styl b/source/css/_layout/tag-plugins/mark.styl index 2248041..9389cd2 100644 --- a/source/css/_layout/tag-plugins/mark.styl +++ b/source/css/_layout/tag-plugins/mark.styl @@ -1,5 +1,5 @@ .md-text .tag-plugin.mark - padding: 2px + padding: 1px 2px border-radius: 2px background: var(--theme-block) color: var(--text-p0)