diff --git a/layout/_partial/main/article/article_footer.ejs b/layout/_partial/main/article/article_footer.ejs index 6db7fb5..6b66802 100644 --- a/layout/_partial/main/article/article_footer.ejs +++ b/layout/_partial/main/article/article_footer.ejs @@ -46,7 +46,7 @@ function layoutDiv() { el += ''; el += '
'; el += ''; - el += '
'; + el += '
'; - + var p = posts.filter(function(p) { + return root + p.path == list.path; + }); + if (p && p.length > 0) { + p = p.data[0]; + } + if (p && p.cover) { + list.img = p.cover; + } if (hexo.theme.config.default.cover) { el += '
' if (list.img && list.img != "") { diff --git a/source/css/_layout/highlight.styl b/source/css/_common/highlight.styl similarity index 99% rename from source/css/_layout/highlight.styl rename to source/css/_common/highlight.styl index 5d9bc7e..1eecd29 100644 --- a/source/css/_layout/highlight.styl +++ b/source/css/_common/highlight.styl @@ -4,8 +4,6 @@ article.md .highlight -webkit-font-smoothing: auto -moz-osx-font-smoothing: auto overflow: hidden - // width: "calc(100% - 2px)" - width: 100% background: var(--block) border: 1px solid var(--block-border) line-height: 1.5 diff --git a/source/css/_layout/partial/article-footer.styl b/source/css/_layout/partial/article-footer.styl index 70776f9..a570c7a 100644 --- a/source/css/_layout/partial/article-footer.styl +++ b/source/css/_layout/partial/article-footer.styl @@ -37,14 +37,17 @@ margin: 0 .md .article-footer .qrcode - margin: 2rem auto 1rem width: 128px padding: 4px background: white border-radius: 4px box-shadow: 0 4px 8px 0px rgba(0, 0, 0, 0.1), 0 0 32px 0px rgba(0, 0, 0, 0.1) + overflow: hidden + trans1 height img object-fit: contain .md .article-footer .qrcode.display - display: block !important + margin: 2rem auto 1rem + height: 128px !important + visibility: visible !important