This commit is contained in:
xaoxuu 2021-03-06 20:44:17 +08:00
parent 7e835a72d6
commit b2163b0b93
9 changed files with 33 additions and 32 deletions

View File

@ -19,7 +19,7 @@ function layoutTitle() {
<article class='content md <%- post.layout %><%- scrollreveal() %>'> <article class='content md <%- post.layout %><%- scrollreveal() %>'>
<%- layoutTitle() %> <%- layoutTitle() %>
<%- post.content %> <%- post.content %>
<%- partial('_partial/main/article/references') %> <%- partial('_partial/main/article/article_footer') %>
</article> </article>
<%- partial('_partial/main/article/read_next') %> <%- partial('_partial/main/article/read_next') %>
<%- partial('_partial/main/article/related_posts') %> <%- partial('_partial/main/article/related_posts') %>

View File

@ -29,7 +29,7 @@ function layoutTitle() {
<article class='content md <%- page.layout %><%- scrollreveal() %>'> <article class='content md <%- page.layout %><%- scrollreveal() %>'>
<%- layoutTitle() %> <%- layoutTitle() %>
<%- page.content %> <%- page.content %>
<%- partial('_partial/main/article/references') %> <%- partial('_partial/main/article/article_footer') %>
</article> </article>
<%- partial('_partial/main/article/read_next') %> <%- partial('_partial/main/article/read_next') %>
<%- partial('_partial/plugins/comments/layout') %> <%- partial('_partial/plugins/comments/layout') %>

View File

@ -17,7 +17,6 @@ hexo.extend.helper.register('popular_posts_wrapper', function(args){
if (cfg.enable != true) return; if (cfg.enable != true) return;
var returnHTML = ""; var returnHTML = "";
var div = ` var div = `
<div class="related_posts">
<section class='header'> <section class='header'>
<div class='title cap theme'>${title}</div> <div class='title cap theme'>${title}</div>
</section> </section>
@ -54,6 +53,6 @@ hexo.extend.helper.register('popular_posts_wrapper', function(args){
if (returnHTML != "") returnHTML = "<div class=\"" + cls + "\">" + returnHTML + "</div>"; if (returnHTML != "") returnHTML = "<div class=\"" + cls + "\">" + returnHTML + "</div>";
div += returnHTML; div += returnHTML;
div += '</section></div>'; div += '</section>';
return div; return div;
}); });

View File

@ -34,7 +34,7 @@
.md .article-footer .social-wrap .md .article-footer .social-wrap
grid-gap: 0.5rem 1rem grid-gap: 0.5rem 1rem
margin: 1rem 0 margin: 0
.md .article-footer .qrcode .md .article-footer .qrcode
margin: 2rem auto 1rem margin: 2rem auto 1rem

View File

@ -1,9 +0,0 @@
.related-wrap#comments
div.cmt-body
min-height: 150px
position: relative
svg.loading
top: 60px
a.avatar
border-radius: 120px !important
overflow: hidden !important

View File

@ -1,14 +0,0 @@
.related-wrap#read-next
.body
.post-title
margin: 0.5rem 0
line-height: 1.2
a
color: inherit
&:hover
color: $color-hover
&.fs14
color: var(--text-p3)
font-weight: 500
&.h2
color: var(--text-p1)

View File

@ -1,3 +1,8 @@
.related-wrap
padding: 2rem 1rem
&:empty
display: none
.related-wrap#related-posts .related-wrap#related-posts
.related-posts .related-posts
width: 100% width: 100%
@ -60,3 +65,27 @@
transform: scale(1.04) transform: scale(1.04)
a+a a+a
margin-left: 1rem margin-left: 1rem
.related-wrap#read-next
.body
.post-title
margin: 0.5rem 0
line-height: 1.2
a
color: inherit
&:hover
color: $color-hover
&.fs14
color: var(--text-p3)
font-weight: 500
&.h2
color: var(--text-p1)
.related-wrap#comments
div.cmt-body
min-height: 150px
position: relative
svg.loading
top: 60px

View File

@ -1,4 +0,0 @@
.related-wrap
padding: 2rem 1rem
&:empty
display: none