-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from zjhch123/upgrade
[Upgrade] Upgrade and fix for the issue #17
- Loading branch information
Showing
11 changed files
with
93 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,6 +88,12 @@ a { | |
} | ||
} | ||
|
||
.fn { | ||
&__none { | ||
display: none; | ||
} | ||
} | ||
|
||
.blog { | ||
&__container { | ||
width: 100%; | ||
|
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,65 +1,41 @@ | ||
<#macro dynamic_comment comment> | ||
<div class="comment" id="${comment.oId}"> | ||
<img class="comment__avatar" src="${comment.commentThumbnailURL}" /> | ||
<div class="comment__info"> | ||
<#if "http://" == comment.commentURL> | ||
<span class="username">${comment.commentName}</span> | ||
<#else> | ||
<a class="username" href="${comment.commentURL}" target="_blank">${comment.commentName}</a> | ||
</#if> | ||
<a class="btn" href="${servePath}${comment.commentSharpURL}">${viewLabel}»</a> | ||
</div> | ||
<main class="comment__detail"> | ||
<div class="vditor-reset"> | ||
${comment.commentContent} | ||
</div> | ||
<time class="time">${comment.commentDate?string("yyyy-MM-dd HH:mm")}</time> | ||
</main> | ||
</div> | ||
</#macro> | ||
|
||
<#macro article_comment comment article> | ||
<div class="comment" id="${comment.oId}"> | ||
<img class="comment__avatar" src="${comment.commentThumbnailURL}" /> | ||
<div class="comment__info"> | ||
<#if "http://" == comment.commentURL || "https://" == comment.commentURL> | ||
<span class="username">${comment.commentName}</span> | ||
<#else> | ||
<a class="username" href="${comment.commentURL}" target="_blank">${comment.commentName}</a> | ||
</#if> | ||
<#if comment.isReply> | ||
@<a | ||
class="replyName J_replyName" | ||
href="javascript:;" | ||
data-originalId="${comment.commentOriginalCommentId}" | ||
>${comment.commentOriginalCommentName}</a> | ||
</#if> | ||
<#if article.commentable> | ||
<a class="btn" href="javascript:page.toggleEditor('${comment.oId}', '${comment.commentName}')">${replyLabel}</a> | ||
</#if> | ||
</div> | ||
<main class="comment__detail"> | ||
<div class="vditor-reset"> | ||
${comment.commentContent} | ||
</div> | ||
<time class="time">${comment.commentDate2?string("yyyy-MM-dd HH:mm")}</time> | ||
</main> | ||
</div> | ||
</#macro> | ||
|
||
<#macro article_comments commentList article> | ||
<#if commentList?size != 0> | ||
<h3>评论列表</h3> | ||
<ul class="article__comments" id="comments"> | ||
<#list commentList as comment> | ||
<@article_comment comment=comment article=article></@article_comment> | ||
</#list> | ||
</ul> | ||
</#if> | ||
<#if article.commentable> | ||
<h3>添加新评论</h3> | ||
<textarea | ||
rows="3" placeholder="${postCommentsLabel}" | ||
class="comment__textarea" id="comment"></textarea> | ||
</#if> | ||
<#if commentList?size != 0> | ||
<h3>评论列表</h3> | ||
<ul class="article__comments" id="comments"> | ||
<#list commentList as comment> | ||
<li class="comment" id="${comment.oId}"> | ||
<img class="comment__avatar" src="${comment.commentThumbnailURL}" /> | ||
<div class="comment__info"> | ||
<#if "http://" == comment.commentURL || "https://" == comment.commentURL> | ||
<span class="username">${comment.commentName}</span> | ||
<#else> | ||
<a class="username" href="${comment.commentURL}" target="_blank">${comment.commentName}</a> | ||
</#if> | ||
<#if comment.isReply> | ||
@<a | ||
class="replyName J_replyName" | ||
href="javascript:;" | ||
data-originalId="${comment.commentOriginalCommentId}" | ||
>${comment.commentOriginalCommentName}</a> | ||
</#if> | ||
<#if article.commentable> | ||
<a class="btn" href="javascript:page.toggleEditor('${comment.oId}', '${comment.commentName}')">${replyLabel}</a> | ||
</#if> | ||
</div> | ||
<main class="comment__detail"> | ||
<div class="vditor-reset"> | ||
${comment.commentContent} | ||
</div> | ||
<time class="time">${comment.commentDate2?string("yyyy-MM-dd HH:mm")}</time> | ||
</main> | ||
</li> | ||
</#list> | ||
</ul> | ||
</#if> | ||
<#if article.commentable> | ||
<h3>添加新评论</h3> | ||
<textarea | ||
rows="3" placeholder="${postCommentsLabel}" | ||
class="comment__textarea" id="comment"></textarea> | ||
</#if> | ||
</#macro> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters