添加 project-a/articleapp/templates/index.html

This commit is contained in:
2026-10-03 11:36:31 +08:00
parent aa0bfac172
commit d322c3b377
+17
View File
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<title>文章列表</title>
</head>
<body>
<h1>文章</h1>
{% for art in articles %}
<div>
<h3>{{art.title}}</h3>
<p>{{art.content}}</p>
<p>{{art.create_time}}</p>
</div>
{% endfor %}
</body>
</html>