Skip to content

What is the purpose of post.sticky ? #447

@xu-song

Description

@xu-song

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions