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

置顶文章不置顶 #1700

Closed
willin opened this issue Jun 5, 2017 · 11 comments
Closed

置顶文章不置顶 #1700

willin opened this issue Jun 5, 2017 · 11 comments

Comments

@willin
Copy link

willin commented Jun 5, 2017

Expected behavior (预期行为)

http://blog.airdwing.com

Actual behavior (实际行为)

置顶文章根据发布日期排在了非置顶文章的前面

NexT Information

Add the ✔ sign before an item which is affected by this behavior.

NexT Version:

  • Master

NexT Scheme:

  • Pisces

Other Information (Like Browser, System, Screenshots)

Github Pages

@ivan-nginx
Copy link
Collaborator

ivan-nginx commented Jun 6, 2017

May u write in English, please. Don't understand what's the problem.

@willin
Copy link
Author

willin commented Jun 6, 2017

Sticky Post is not sticky.

@Acris
Copy link
Collaborator

Acris commented Jul 3, 2017

#415 (comment)

@willin
Copy link
Author

willin commented Jul 3, 2017

@Acris bad practise.

@Acris
Copy link
Collaborator

Acris commented Jul 4, 2017

@willin I just want to tell you NexT didn't provide this function for now.

@ivan-nginx
Copy link
Collaborator

@willin can u show some example on it? I just don't use sticky posts and i'll try to fix it later, if i see what's the trouble.

@willin
Copy link
Author

willin commented Jul 14, 2017

@ivan-nginx
Copy link
Collaborator

ivan-nginx commented Jul 14, 2017

@willin ok, and what post must be sticky?
This post: http://blog.airdwing.com/posts/2017/willin-contribute-posts/ ?

@willin
Copy link
Author

willin commented Jul 14, 2017

@ivan-nginx yes

@ivan-nginx
Copy link
Collaborator

ivan-nginx commented Jul 14, 2017

@willin, as @Acris talk above, for now Sticky posts is not provided by Next. @iissnan do that function about 2 years ago and then remove js filter (https://github.com/iissnan/hexo-theme-next/blob/f4a08bffed0d7dbc0ab8ef643295f5f0c8b75453/scripts/filters/sticky.js) for sticky function. I don't know why he do it, but i think was bugs with standart Hexo rendering plugins or something else.

If you want your post to stick, u may try to add this: #415 (comment).
Or u may simple do big date (something like date: 2050-01-01 00:00:00) to sort your posts as u wish. And add sticky: true parameter to do vision that post is sticky. It's may call PseudoSticky post.

If resolved, close it please. And thanks for wordcount plugin. 👍

@stevenjoezhang
Copy link
Contributor

Fixed in hexojs/hexo-generator-index#51

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants