看了下后台日志
Caused by: freemarker.core.ParseException: Syntax error in template “themes/louie_senpai_siren/archives.ftl” in line 19, column 112:
Encountered "\‘)>\n <h2>\u6587\u7ae0\u5f52\u6863</h2>\n </#if>\n <div id=\“archives-content\”>\n <@postTag method=\“archiveMonth\”>\n <#list archives as archive>\n <div class=\“archive-title\” id=\“arti-${archive.year?c}-${archive.month!}\”>\n <span class=\“ar-time\”><i class=\“iconfont\”></i></span>\n <h3>${archive.year?c}-${archive.month!}</h3>\n <div class=\“archives archives-${archive_index}\” id=\“monlist\” data-date=\“${archive.year?c}-${archive.month!}\” style=\“display: block; overflow: hidden;\”>\n <#list archive.posts as post>\n <span class=\“ar-circle\”></span>\n <div class=\“arrow-left-ar\”></div>\n <div class=\“brick\”>\n <a href=\“${context!}/archives/${post.url!}\”>\n <span class=\“time\”><i class=\“iconfont\”></i>${post.createTime?string(\’", but was expecting one of:
“.”
“..”
<DOT_DOT_LESS>
“..”
“?”
“??”
“!”
“[”
“(”
“}”
<TERMINATING_EXCLAM>
“.”
“[”
“(”
“?”
<TERMINATING_EXCLAM>
“!”
“??”
<DOT_DOT_LESS>
“..”
“..”
at freemarker.core.FMParser.generateParseException(FMParser.java:6107) ~[freemarker-2.3.29.jar!/:2.3.29]
at freemarker.core.FMParser.jj_consume_token(FMParser.java:5966) ~[freemarker-2.3.29.jar!/:2.3.29]
at freemarker.core.FMParser.StringOutput(FMParser.java:1670) ~[freemarker-2.3.29.jar!/:2.3.29]
at freemarker.core.FMParser.MixedContentElements(FMParser.java:3955) ~[freemarker-2.3.29.jar!/:2.3.29]
at freemarker.core.FMParser.If(FMParser.java:1787) ~[freemarker-2.3.29.jar!/:2.3.29]
at freemarker.core.FMParser.FreemarkerDirective(FMParser.java:3616) ~[freemarker-2.3.29.jar!/:2.3.29]
at freemarker.core.FMParser.MixedContentElements(FMParser.java:4006) ~[freemarker-2.3.29.jar!/:2.3.29]
at freemarker.core.FMParser.UnifiedMacroTransform(FMParser.java:2996) ~[freemarker-2.3.29.jar!/:2.3.29]
at freemarker.core.FMParser.FreemarkerDirective(FMParser.java:3651) ~[freemarker-2.3.29.jar!/:2.3.29]
at freemarker.core.FMParser.MixedContentElements(FMParser.java:4006) ~[freemarker-2.3.29.jar!/:2.3.29]
at freemarker.core.FMParser.Root(FMParser.java:4652) ~[freemarker-2.3.29.jar!/:2.3.29]
at freemarker.template.Template.<init>(Template.java:252) ~[freemarker-2.3.29.jar!/:2.3.29]
at freemarker.cache.TemplateCache.loadTemplate(TemplateCache.java:549) ~[freemarker-2.3.29.jar!/:2.3.29]
at freemarker.cache.TemplateCache.getTemplateInternal(TemplateCache.java:439) ~[freemarker-2.3.29.jar!/:2.3.29]
… 64 common frames omitted
好像是archives.ftl {post.createTime?string(\’", but was expecting one of: 这里少了个符号。。不确定了
下面是archives.ftl 19行之后的内容
<#if !(settings.patternimg!true) || !(settings.archives_patternimg?? && settings.archives_patternimg!='')>
<h2>文章归档</h2>
</#if>
<div id=“archives-content”>
<@postTag method=“archiveMonth”>
<#list archives as archive>
<div class=“archive-title” id=“arti-${archive.year?c}-${archive.month!}”>
<span class=“ar-time”><i class=“iconfont”></i></span>
<h3>${archive.year?c}-${archive.month!}</h3>
<div class=“archives archives-${archive_index}” id=“monlist” data-date=“${archive.year?c}-${archive.month!}” style=“display: block; overflow: hidden;”>
<#list archive.posts as post>
<span class=“ar-circle”></span>
<div class=“arrow-left-ar”></div>
<div class=“brick”>
<a href=“${context!}/archives/${post.url!}”>
<span class=“time”><i class=“iconfont”></i>${post.createTime?string(‘MM-dd’)}</span>${post.title!}
</a>
</div>
</#list>
</div>
</div>
</#list>
</@postTag>
</div>
</div>
</article>
<#include “footer.ftl”>
archives.ftl 的内容我没有改过、、
halo 1.2