This commit is contained in:
Van 2019-02-17 13:08:40 +08:00
parent 8c273df068
commit 714fd85f3e
No known key found for this signature in database
GPG Key ID: 7059B8783A78F16C
4 changed files with 15 additions and 10 deletions

View File

@ -91,8 +91,15 @@
</div>
<@comments commentList=articleComments article=article></@comments>
</div>
<#if 0 != relevantArticlesDisplayCount>
<div id="relevantArticles"></div>
</#if>
<#if 0 != randomArticlesDisplayCount>
<div id="randomArticles"></div>
</#if>
<#if externalRelevantArticlesDisplayCount?? && 0 != externalRelevantArticlesDisplayCount>
<div id="externalRelevantArticles"></div>
</#if>
<div class="col-sm-2"></div>
</div>
</div>
@ -104,6 +111,12 @@
<#if 0 != externalRelevantArticlesDisplayCount>
page.loadExternalRelevantArticles("<#list article.articleTags?split(",") as articleTag>${articleTag}<#if articleTag_has_next>,</#if></#list>");
</#if>
<#if 0 != randomArticlesDisplayCount>
page.loadRandomArticles();
</#if>
<#if 0 != relevantArticlesDisplayCount>
page.loadRelevantArticles('${article.oId}', '<h4>${relevantArticles1Label}</h4>');
</#if>
</@comment_script>
</body>
</html>

View File

@ -197,10 +197,6 @@ h4, h5, h6 {
border-top: 1px solid #e5e5e5;
}
.article-relative {
margin-top: 48px;
}
.right {
float: right;
}

View File

@ -28,9 +28,5 @@
<div class="row cmtForm">
<textarea rows="3" placeholder="${postCommentsLabel}" id="comment" class="form-control"></textarea>
</div>
<#if externalRelevantArticlesDisplayCount?? && 0 != externalRelevantArticlesDisplayCount>
<div id="externalRelevantArticles" class="row article-relative"></div>
</#if>
</#if>
</#macro>

View File

@ -570,7 +570,7 @@ sup {
#externalRelevantArticles {
width: 357px;
margin-top: 13px;
margin-top: 0;
}
/* end article*/