浏览代码

Add empty posts message

master
Dylan Baker 5 年前
父节点
当前提交
b6d4c987a8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      templates/index.html

+ 1
- 1
templates/index.html 查看文件

4
 
4
 
5
 <div class="posts">
5
 <div class="posts">
6
   {% for post in posts %} {{ components::post(post=post, type="index") }} {%
6
   {% for post in posts %} {{ components::post(post=post, type="index") }} {%
7
-  endfor %}
7
+  else %} No posts yet {% endfor %}
8
 </div>
8
 </div>
9
 {% endblock %}
9
 {% endblock %}

正在加载...
取消
保存