mirror of https://github.com/halo-dev/halo
🎨 修改文章支持回显分类
parent
244b24b02e
commit
cae1a8e6a8
|
@ -106,6 +106,15 @@
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<ul style="list-style: none;padding: 0px;margin: 0px;">
|
<ul style="list-style: none;padding: 0px;margin: 0px;">
|
||||||
<@commonTag method="categories">
|
<@commonTag method="categories">
|
||||||
|
<#if post??>
|
||||||
|
<#list categories as cate>
|
||||||
|
<li style="padding: 0;margin: 0px;list-style: none">
|
||||||
|
<label>
|
||||||
|
<input name="categories" id="categories" type="checkbox" class="minimal" value="${cate.cateId?c}" <#list post.categories as postCate><#if postCate.cateId = cate.cateId>checked="checked"</#if></#list>> ${cate.cateName}
|
||||||
|
</label>
|
||||||
|
</li>
|
||||||
|
</#list>
|
||||||
|
<#else>
|
||||||
<#list categories as cate>
|
<#list categories as cate>
|
||||||
<li style="padding: 0;margin: 0px;list-style: none">
|
<li style="padding: 0;margin: 0px;list-style: none">
|
||||||
<label>
|
<label>
|
||||||
|
@ -113,6 +122,7 @@
|
||||||
</label>
|
</label>
|
||||||
</li>
|
</li>
|
||||||
</#list>
|
</#list>
|
||||||
|
</#if>
|
||||||
</@commonTag>
|
</@commonTag>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue