diff --git a/_config.yml b/_config.yml index 2bb6b36..a439d14 100755 --- a/_config.yml +++ b/_config.yml @@ -57,7 +57,7 @@ article: # 文章许可协议 license: '本文采用 [署名-非商业性使用-相同方式共享 4.0 国际](https://creativecommons.org/licenses/by-nc-sa/4.0/) 许可协议,转载请注明出处。' # 分享 - share: # [weibo, email, link] # wechat 需要安装二维码插件: npm i hexo-helper-qrcode + share: # [wechat, weibo, email, link] # 相关文章,需要安装插件 (for layout: post) # npm i hexo-related-popular-posts related_posts: diff --git a/layout/_partial/main/article/references.ejs b/layout/_partial/main/article/references.ejs index 153270c..03d0fcd 100644 --- a/layout/_partial/main/article/references.ejs +++ b/layout/_partial/main/article/references.ejs @@ -87,8 +87,7 @@ function layoutDiv() { el += ''; if (theme.article.share.includes('wechat')) { el += ''; } el += ''; diff --git a/layout/index.ejs b/layout/index.ejs index 32c4fec..c825388 100755 --- a/layout/index.ejs +++ b/layout/index.ejs @@ -12,7 +12,10 @@ if (page.title && page.wiki) { function layout_post_card(type, post, content) { var el = ''; - el += ''; + if (post.post == undefined) { + post.post = 'article'; + } + el += ''; el += '
'; el += content; el += '
'; diff --git a/source/css/_layout/partial/article_footer.styl b/source/css/_layout/partial/article_footer.styl index 4247879..0e1455e 100644 --- a/source/css/_layout/partial/article_footer.styl +++ b/source/css/_layout/partial/article_footer.styl @@ -48,6 +48,9 @@ .md .article-footer .qrcode margin: 2rem auto 1rem width: 128px + padding: 4px + background: white + border-radius: 4px img object-fit: contain diff --git a/source/css/_layout/post_list.styl b/source/css/_layout/post_list.styl index 6935602..0e44b5f 100644 --- a/source/css/_layout/post_list.styl +++ b/source/css/_layout/post_list.styl @@ -82,6 +82,19 @@ height: 200px &:not(.lazyload) trans1: transform 1s +.post-list .post-card.post.photo .post-cover img + height: 400px + @media screen and (max-width: 900px) + height: 320px + @media screen and (max-width: $device-tablet) + height: 400px + @media screen and (max-width: $device-mobile) + height: 320px + @media screen and (max-width: $device-mobile-l) + height: 280px + @media screen and (max-width: $device-mobile-m) + height: 240px + .post-list .post-card.post:hover .post-title color: $color-hover