블로그 메인 목록 페이지
- 최근 목록 블로그 및 랜덤 블로그 가져오기 부분 적용
This commit is contained in:
2
app.py
2
app.py
@@ -112,7 +112,7 @@ def index():
|
|||||||
|
|
||||||
posts.append(random_post[0])
|
posts.append(random_post[0])
|
||||||
|
|
||||||
# 태그 제거 후 150자로 제한
|
# 태그 제거 후 150자로 제한
|
||||||
for post in posts:
|
for post in posts:
|
||||||
post['contents'] = remove_html_tags(post['contents'])[:150]
|
post['contents'] = remove_html_tags(post['contents'])[:150]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user