[feat] license in wiki

This commit is contained in:
xaoxuu 2023-12-06 21:54:42 +08:00
parent 1233bd0f65
commit 02d7a59dd7
2 changed files with 6 additions and 2 deletions

View File

@ -52,7 +52,11 @@ function layoutDiv() {
if (page.license != null) { if (page.license != null) {
license = markdown(page.license || theme.article.license) license = markdown(page.license || theme.article.license)
} else if (proj?.license != null) { } 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) { if (license.length > 0) {

View File

@ -1,5 +1,5 @@
.md-text .tag-plugin.mark .md-text .tag-plugin.mark
padding: 2px padding: 1px 2px
border-radius: 2px border-radius: 2px
background: var(--theme-block) background: var(--theme-block)
color: var(--text-p0) color: var(--text-p0)