File tree 1 file changed +3
-6
lines changed
1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -237,18 +237,15 @@ <h4>文章列表(<font color="red">共{{ all_article_num }}篇</font>)</h4>
237
237
< div class ="nestable ">
238
238
< div class ="dd " id ="nestable ">
239
239
< ol class ="dd-list ">
240
- {% for classify in all_classify %}
240
+ {% for classify,articles in all_article.items %}
241
241
< li class ="dd-item " data-id ="{{ classify.id }} ">
242
242
< div class ="dd-handle "> {{ classify.name }}</ div >
243
243
< ol class ="dd-list ">
244
- {% for article in all_article %}
245
- {% if article.classify.id == classify.id %}
244
+ {% for article in articles %}
246
245
< li class ="dd-item " data-id ="{{ article.id }} " >
247
246
< a class ="dd-handle " href ="/Gr33kLibrary/article_detail/{{ article.id }}/ " target ="_blank "> {{ article.title }}{% if article.type == 1 %}< font color ="#006400 "> (原创)</ font > {% endif %} < font color ="red "> {{ article.update_time|date:'Y-m-d H:i:s' }}</ font > </ a >
248
247
</ li >
249
- {% else %}
250
- {% endif %}
251
- {% endfor %}
248
+ {% endfor %}
252
249
</ ol >
253
250
</ li >
254
251
{% endfor %}
You can’t perform that action at this time.
0 commit comments