블로그 메인 목록 페이지

- 최근 목록 블로그 및 랜덤 블로그 가져오기 부분 적용
This commit is contained in:
javamon117
2023-09-13 17:14:36 +09:00
parent e209d7670f
commit 1b8d45b86c

2
app.py
View File

@@ -112,7 +112,7 @@ def index():
posts.append(random_post[0])
# 태그 제거 후 150자로 제한
# 태그 제거 후 150자로 제한
for post in posts:
post['contents'] = remove_html_tags(post['contents'])[:150]