This commit is contained in:
Van
2019-02-17 14:23:00 +08:00
parent 628de04988
commit 8249e5dd30
5 changed files with 26 additions and 12 deletions

View File

@@ -122,7 +122,15 @@
</article>
</div>
<@comments commentList=articleComments article=article></@comments>
<#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>
<#include "side.ftl">
</div>
</main>
@@ -132,6 +140,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>