weixin_39563132的博客
- 于 2017-07-19 加入CSDN
-
获得1次点赞
-
内容获得0次评论
-
获得3次收藏
- 最近
- 文章
- 资源
- 问答
- 课程
- 帖子
- 收藏
- 关注/订阅




Limit number of displayed items in portfolio widget
Hello,
First: thanks for the amazing work with the Academic theme!
Is your feature request related to a problem? Please describe. No problem.
Describe the solution you'd like
I would like to present the blog posts ("pages" widget) like is done for the portfolio widget, i.e. with the ability to filter articles related to given tags (like "New publication", "Seminar", "Conference", "PhD defence" etc.).
Describe alternatives you've considered
I can actually use a portfolio widget to do it, and I tried, but then I lose the ability to limit the number of shown items. Playing with the portfolio.html file and the range in {{ range $idx, $item := where site.RegularPages "Type" $items_type }}
, I got to limit the number of shown items when the filter is "*", but then I lose this when the filter changes (if an article with the wanted tag was published earlier than the limit number, it doesn't appear).
I'm pretty sure this is something to change in the js code for isotope filtering, but this far exceeds my skillset...
At the moment, I don't do any filtering. I use the "pages" widget with a modified layout: see lab website and the "Highlights" part.
Additional context
I guess that limiting the number of displayed items in the portfolio widget and adding a button "see more" or something like that would also be a useful feature for people with lots of projects.
Thanks! P.S. I did look through existing issues and didn't find anything similar.
该提问来源于开源项目:wowchemy/wowchemy-hugo-modules
