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

[申请新功能]文章置顶 #62

Open
FatBobGo opened this issue Feb 16, 2020 · 10 comments
Open

[申请新功能]文章置顶 #62

FatBobGo opened this issue Feb 16, 2020 · 10 comments
Labels
enhancement New feature or request remind This may be worked on later or not.

Comments

@FatBobGo
Copy link

先生你好,
我觉得文章置顶功能很实用。请问可以添加这个功能吗?十分感谢。

@Siricee Siricee added enhancement New feature or request remind This may be worked on later or not. labels Feb 16, 2020
@FatBobGo
Copy link
Author

FatBobGo commented Mar 8, 2020

小姐你好,请问这个功能在研发吗?

@Siricee
Copy link
Owner

Siricee commented Mar 9, 2020

小姐你好,请问这个功能在研发吗?

这个issue打了remind标签,但也可能会取消。我最近比较忙暂时没有时间开发这个,如果你很着急你可以自己写一个提交PR上来,审核通过就可以merge。

另外你还是叫我先生吧。

@stevenjoezhang
Copy link

Hexo 官方实现了: hexojs/hexo-generator-index#51
升级 hexo-generator-index 插件即可体验

@FatBobGo
Copy link
Author

@stevenjoezhang 你好,我刚刚测试了一下,还是不行。

  1. 安装插件 npm install hexo-generator-index --save
  2. 使用下面的参数都不可以
    sticky: true 或者 sticky: 100 或者
sticky: true
noDate: ture

@stevenjoezhang
Copy link

试试

npm i hexo-generator-index@2.0.0
hexo clean

然后

sticky: 100

@FatBobGo
Copy link
Author

还是不行。感觉是主题使用了其它方法?

@anson2416
Copy link

@Siricee 你好,请问有时间帮忙看下为什么置顶插件不生效的原因吗?谢谢。

@Myoontyee
Copy link

Myoontyee commented Mar 29, 2022

一个暂时能用的Chic置顶效果见https://myoontyee.github.io/top/
效果图如下
图片

教程等待更新中...

@Myoontyee
Copy link

Myoontyee commented Mar 31, 2022

@Myoontyee
Copy link

Myoontyee commented Apr 26, 2022

@Siricee 文章置顶功能我已实现一种方案,可以把这个issue打tag当教程了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request remind This may be worked on later or not.
Projects
None yet
Development

No branches or pull requests

5 participants