From c72a9f3835c19524430baec2124ef2cced2c6b32 Mon Sep 17 00:00:00 2001 From: Van Date: Tue, 25 Sep 2018 12:22:43 +0800 Subject: [PATCH] fixed https://github.com/b3log/solo/issues/12503 --- Medium/article.ftl | 44 +++++--------------------------------------- Medium/css/base.css | 4 ++++ Medium/js/common.js | 3 +-- Medium/page.ftl | 8 ++++++-- 4 files changed, 16 insertions(+), 43 deletions(-) diff --git a/Medium/article.ftl b/Medium/article.ftl index 0ecf0b8..ccc7fac 100644 --- a/Medium/article.ftl +++ b/Medium/article.ftl @@ -216,49 +216,15 @@ + <#include "bottom.ftl"> <#if pjax> - - +<#include "footer.ftl"> - - - +<#if pjax> <@comment_script oId=article.oId> + Skin.initArticle() Skin.initComment = function (articleOId, articleTags) { page.tips.externalRelevantArticlesDisplayCount = "${externalRelevantArticlesDisplayCount}"; <#if 0 != randomArticlesDisplayCount> @@ -273,7 +239,7 @@ } Skin.initComment('${article.oId}', "<#list article.articleTags?split(",") as articleTag>${articleTag}<#if articleTag_has_next>,") - +<#if pjax> ${plugins} diff --git a/Medium/css/base.css b/Medium/css/base.css index ed013fa..45ba41c 100644 --- a/Medium/css/base.css +++ b/Medium/css/base.css @@ -1033,6 +1033,10 @@ blockquote { margin-left: 5px; } +.article__comment .comment__body .content-reset { + min-height: 40px; +} + .article__comment .comment__user, .article__comment .comment__user a { color: rgb(3, 168, 124); diff --git a/Medium/js/common.js b/Medium/js/common.js index 535ef2b..9aa4c53 100644 --- a/Medium/js/common.js +++ b/Medium/js/common.js @@ -55,12 +55,11 @@ var Skin = { if (!$('#articleSideShare .article__code').qrcode) { $.ajax({ method: "GET", - url: latkeConfig.staticServePath + '/js/jquery.qrcode.min.js', + url: latkeConfig.staticServePath + '/skins/Medium/js/jquery.qrcode.min.js', dataType: "script", cache: true }); } - Skin.initArticle(); } }) }, diff --git a/Medium/page.ftl b/Medium/page.ftl index c3b2c15..9a98c70 100644 --- a/Medium/page.ftl +++ b/Medium/page.ftl @@ -29,6 +29,8 @@ <#include "header.ftl"> +
+ <#if pjax> <#include "nav.ftl">
<#if noticeBoard??> @@ -47,10 +49,12 @@
<@comments commentList=pageComments article=page>
-
<#include "bottom.ftl"> -<#include "footer.ftl"> + <#if pjax>
+<#include "footer.ftl"> +<#if pjax> <@comment_script oId=page.oId> + <#if pjax>