halo-theme-simple-bootstrap
halo-theme-simple-bootstrap copied to clipboard
无法显示日志页面
后端点击访问 日志页面
打开前端如下图:
其他的例如图库,友情连接等都能正确加载jquery
,但是日志页面没有加载jquery
....
下面是我的模板代码:
<#--日志界面OK-->
<#include "module/layout.ftl">
<@layout
title="${user.nickname!}的日志 | ${options.blog_title!}"
keywords="${options.seo_keywords!}"
description="${options.seo_description!}">
<#--下方正文部分-->
<div class="container-fluid" style="background: #f8fafc;">
<div class="container px-md-2 px-0">
<div class="row">
<div id="left" class="journals col-md-8 p-0 pr-md-2" style="opacity: 0;">
<#include "module/journals/left.ftl"/>
</div>
<div id="right" class="col-md-4 bg-white pt-3 pb-5 text-muted mt-2 d-md-block d-none">
<#include "module/journals/right.ftl"/>
</div>
</div>
</div>
</div>
</@layout>
这是做了什么操作的吗?我日志记录内容如下:
在thymeleaf中使用js获取后台传到前台的值,不仅需要在首页声明: xmlns:th="http://www.thymeleaf.org" 还需要在<script>声明: th:inline="javascript"
这样才能使用:[[${titleText}]] 进行取值操作。
看来是Halo
的问题了...
https://github.com/halo-dev/halo/issues/469
@CodeLunatic 老哥, 问题仍然没有解决,可以查看一下 https://github.com/halo-dev/halo/issues/469 来查看我们认为的错误...
@xiaofsu 日志页面的问题已经解决,可以查看commits:f112a3d