|
@@ -4,11 +4,16 @@
|
|
|
<script src="https://cdn.jsdelivr.net/npm/@editorjs/image@latest"></script><!-- Image -->
|
|
|
<script type="text/javascript" src="/static/js/yo.js"></script>
|
|
|
{% for idx in range(0, length) %}
|
|
|
-{% if blogs[idx].url != '/blogs' %}
|
|
|
<tbody>
|
|
|
<tr>
|
|
|
<td class="table__data">{{ idx+1 }}</td>
|
|
|
- <td class="table__data">{{ blogs[idx].title }}</td>
|
|
|
+ <td class="table__data">
|
|
|
+ {{ blogs[idx].title }}
|
|
|
+ {% if blogs[idx].url == '/blog' %}
|
|
|
+ <span class="badge bg-secondary text-white ml-2">根目錄</span>
|
|
|
+ <span class="badge bg-danger text-white">請勿刪除</span>
|
|
|
+ {% endif %}
|
|
|
+ </td>
|
|
|
<td class="table__data">{{ blogs[idx].date }}</td>
|
|
|
<td class="table__data"><input type="checkbox" {{ 'checked' if (blogs[idx].draft.lower()=='false' ) }}
|
|
|
onclick="toggleDraft(this,'{{ blogs[idx].url }}');" /></td>
|
|
@@ -26,7 +31,6 @@
|
|
|
</td>
|
|
|
</tr>
|
|
|
</tbody>
|
|
|
-{% endif %}
|
|
|
{% endfor %}
|
|
|
{% endblock table_body %}
|
|
|
{% block modal_body %}
|
|
@@ -129,11 +133,19 @@
|
|
|
<div class="mt-1">目錄使用,將說明本文章可以解決的問題</div>
|
|
|
</td>
|
|
|
</tr>
|
|
|
+ <tr>
|
|
|
+ <td>
|
|
|
+ <h4>標籤名稱</h4>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <input class="form-control" id="cblogtags" type="text" />
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
<tr class="d-none">
|
|
|
<td>
|
|
|
<h4>是否顯示</h4>
|
|
|
</td>
|
|
|
- <td><input id="cdraft" type="checkbox"/></td>
|
|
|
+ <td><input id="cdraft" type="checkbox" /></td>
|
|
|
</tr>
|
|
|
</tbody>
|
|
|
</table>
|