halo-theme-simple-bootstrap icon indicating copy to clipboard operation
halo-theme-simple-bootstrap copied to clipboard

无法显示日志页面

Open xiaofsu opened this issue 5 years ago • 4 comments

后端点击访问 日志页面 image

打开前端如下图: image

其他的例如图库,友情连接等都能正确加载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>

日志页面 图库页面 友链页面

xiaofsu avatar Jan 06 '20 05:01 xiaofsu

image

这是做了什么操作的吗?我日志记录内容如下:

在thymeleaf中使用js获取后台传到前台的值,不仅需要在首页声明: xmlns:th="http://www.thymeleaf.org" 还需要在<script>声明: th:inline="javascript"
这样才能使用:[[${titleText}]] 进行取值操作。

看来是Halo的问题了... image

xiaofsu avatar Jan 06 '20 06:01 xiaofsu

https://github.com/halo-dev/halo/issues/469

ruibaby avatar Jan 06 '20 06:01 ruibaby

@CodeLunatic 老哥, 问题仍然没有解决,可以查看一下 https://github.com/halo-dev/halo/issues/469 来查看我们认为的错误...

xiaofsu avatar Jan 06 '20 06:01 xiaofsu

@xiaofsu 日志页面的问题已经解决,可以查看commits:f112a3d

CodeLunatic avatar Jan 23 '20 12:01 CodeLunatic