Skip to content

Conversation

@spm2020spring
Copy link
Member

By 朱倩, 曹子昊, 费宇馨, 李婷

Recommend five articles with high popularity on the homepage.We added the homepage into two parts. Articles in the first part are top 5 in popularity, and this part will update according to the popularity of each article and how long the article has been shown on it Articles in the second part are all the articles posted before,sorted by release time from newest to oldest.
io.html中用jinja做了个for循环输出article.title,所以需要在def index():中声明调用的字典,以metric为参考列用query.order_by进行降序排序后取前五位作为top5
用jinja写一个for循环动态输出articles里的top5
delete the useless 'render'
assist the jinja frame in io.html working well
change the address in line 159 to relative
Changed the color style to cleaner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants