Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

生成不同category的rss #127

Closed
qzi opened this issue Jan 1, 2020 · 6 comments
Closed

生成不同category的rss #127

qzi opened this issue Jan 1, 2020 · 6 comments

Comments

@qzi
Copy link

qzi commented Jan 1, 2020

如果生成不同category的rss更好,那样就可以写几个类别给不同的人订阅,并不是所有的人都对所有类别感兴趣

@bestony
Copy link

bestony commented Jan 2, 2020

很好的想法,不过似乎可以通过插件的方式来实现

@qzi
Copy link
Author

qzi commented Jan 2, 2020

很好的想法,不过似乎可以通过插件的方式来实现

刚需

@qzi
Copy link
Author

qzi commented Jan 2, 2020

很好的想法,不过似乎可以通过插件的方式来实现

想了解你想的方案

@SukkaW
Copy link
Member

SukkaW commented Jan 2, 2020

@qzi

let posts = locals.posts.sort(feedConfig.order_by || '-date');

As you can see, the plugin read post list from locals.

Base on this, you can write your own RSS generator then.

@qzi
Copy link
Author

qzi commented Jan 3, 2020

@qzi

let posts = locals.posts.sort(feedConfig.order_by || '-date');

As you can see, the plugin read post list from locals.

Base on this, you can write your own RSS generator then.

哇,厉害,sukka同时在维护很多插件的感觉,我不太懂nodejs,可能得学习一下研究代码才能构建一个扩展,回头有空试试

@stevenjoezhang
Copy link
Member

There is a discussion about it: #3
I'm closing this issue. Please join the discussion there :)

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

No branches or pull requests

4 participants