适配最新bolo博客文章显示报错的问题

This commit is contained in:
LingZhaoHui 2021-04-03 22:11:31 +08:00
parent 92daec0353
commit ae3f91af4c
1 changed files with 9 additions and 10 deletions

View File

@ -156,16 +156,15 @@
</div>
<a id="back-to-top" title="返回顶部" href="javascript:"><i class="fas fa-chevron-up"></i></a>
<#include "footer.ftl">
<@comment_script oId=article.oId commentable=article.commentable>
page.tips.externalRelevantArticlesDisplayCount =
"${externalRelevantArticlesDisplayCount}";
<#if 0 !=randomArticlesDisplayCount>
page.loadRandomArticles('<h3>${randomArticlesLabel}</h3>');
</#if>
<#if 0 !=relevantArticlesDisplayCount>
page.loadRelevantArticles('${article.oId}', '<h3>${relevantArticlesLabel}</h3>');
</#if>
</@comment_script>
<@comment_script oId=article.oId commentable=article.commentable>
<#if 0 !=randomArticlesDisplayCount>
page.loadRandomArticles('<h3>${randomArticlesLabel}</h3>');
</#if>
<#if 0 !=relevantArticlesDisplayCount>
page.loadRelevantArticles('${article.oId}','<h3>${relevantArticlesLabel}</h3>');
</#if>
Skin.initArticle()
</@comment_script>
<script>
// 延时检测右侧 “相关阅读” 是否为空,如果空则删除空 div好看些
/**