prinsss / hexo-hide-posts

A plugin to hide specific posts from your Hexo blog and make them only accessible by links. (隐藏 Hexo 文章)
MIT License
197 stars 19 forks source link

在文章底部的 “上一篇” 或 “下一篇” 会暴漏文章入口 #1

Closed xfdev closed 5 years ago

xfdev commented 5 years ago

默认主题下,比如隐藏了第五篇文章,在第六篇文章的底部的“上一篇”会暴漏第五篇文章的链接。

prinsss commented 5 years ago

这确实是我欠考虑了,感谢你的反馈,我马上着手修复此问题。👍

bmitchinson commented 5 years ago

对此有任何更新? 喜欢这个插件,非常感谢你的工作。

chawyehsu commented 5 years ago

这个问题我发现处理起来有点棘手。如果当前文章的上一篇是隐藏文章,那应该如何显示?有两种选择:

prinsss commented 5 years ago

@h404bi 是的,我认为遍历直至 post.prev 为空而止可能比较好。

@bmitchinson Sorry for putting this issue aside for such a long time, but I'm now busying preparing for my exam. There should be an update with this issue fixed in this week. ;)

prinsss commented 5 years ago

已修复 https://github.com/printempw/hexo-hide-posts/commit/0772798e4d28812370b379e4b5da89c25aa8f1a9

prinsss commented 5 years ago

新 package hexo-hide-posts@0.1.0 已发布