forked from mrlan/EnglishPal
管理文章页面的文章列表中,每篇文章不再在内容部分重新显示标题。
parent
b3b154a24f
commit
0e25737381
|
@ -57,6 +57,7 @@ def article():
|
|||
_articles = get_page_articles(_cur_page, _page_size)
|
||||
for article in _articles: # 获取每篇文章的title
|
||||
article.title = article.text.split("\n")[0]
|
||||
article.content = ''.join(article.text.split("\n")[1:])
|
||||
|
||||
context = {
|
||||
"article_number": _article_number,
|
||||
|
|
|
@ -76,7 +76,7 @@
|
|||
<small>Level:{{text.level }}</small>
|
||||
<small>Date:{{ text.date }}</small>
|
||||
</div>
|
||||
<p style="padding-top: 5px;" class="mb-1">{{ text.text }}</p>
|
||||
<p style="padding-top: 5px;" class="mb-1">{{ text.content }}</p>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue