emacs-china / EGO

EGO is a static site generator that depends on Emacs, Git and Org-mode.
94 stars 11 forks source link

可否自定义 RSS 中条目的数量? #97

Open Liu233w opened 7 years ago

Liu233w commented 7 years ago

生成的RSS默认只能显示前10条,这个数量能不能自定义呢?

kuangdash commented 7 years ago

这个写死在了 ego--update-rss 这个函数中,所以不能自定义,但可以临时用 advice-add 修改 ego--update-rss 函数,改 (-take 10 …… 那个部分(把数字 10 改成你需要的数量,其他照抄)

当然也可以在 ego-project-config-alist 里面针对这个需求添加变量……还是留给 2.0 版本吧。