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

What is the purpose of post.sticky ? #447

Closed
3 tasks done
xu-song opened this issue Oct 21, 2018 · 5 comments
Closed
3 tasks done

What is the purpose of post.sticky ? #447

xu-song opened this issue Oct 21, 2018 · 5 comments

Comments

@xu-song
Copy link
Contributor

xu-song commented Oct 21, 2018

I agree and want to create new issue


what's the purpuse of post.sticky

According to the source code, post.sticky seems no use, except adding <i class="fa fa-thumb-tack"></i> before title.

screen shot 2018-10-21 at 12 38 06 pm

How to use

{% if post.sticky > 0 %}
{{ post.sticky }}
<span class="post-sticky-flag" title="{{ __('post.sticky') }}">
<i class="fa fa-thumb-tack"></i>
</span>
{% endif %}

  • Is post.sticky an int or string or boolean?
@sli1989
Copy link
Collaborator

sli1989 commented Oct 23, 2018

The sticky feature had been removed. #705
Maybe it's a feature request.
U can also try to use hexo-generator-topindex

@stale
Copy link

stale bot commented Mar 1, 2019

This issue has been automatically marked as stale because lack of recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stevenjoezhang

This comment has been minimized.

@ivan-nginx ivan-nginx changed the title what is the purpose of post.sticky ? What is the purpose of post.sticky ? Apr 3, 2019
@youngjuning
Copy link

Thanks bro

@stevenjoezhang
Copy link
Contributor

Fixed in hexojs/hexo-generator-index#51

wens07 pushed a commit to wens07/hexo-theme-next that referenced this issue May 8, 2023
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

5 participants