跟着麦叔学flask,感谢b站麦叔
This commit is contained in:
19
templates/study/posts.html
Executable file
19
templates/study/posts.html
Executable file
@@ -0,0 +1,19 @@
|
||||
{# 引入base #}
|
||||
{% extends 'study/base.html' %}
|
||||
|
||||
{# 网站标签 #}
|
||||
{% block title %} {{ posts['title'] }} {% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>{{ posts['title'] }}</h1>
|
||||
<span>{{ posts['created_8'] }}</span>
|
||||
<a href="./{{ posts['id'] }}/edit">
|
||||
<span>编辑</span>
|
||||
</a>
|
||||
<hr>
|
||||
|
||||
<p>{{ posts['content'] }}</p>
|
||||
|
||||
|
||||
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user