I want to display keywords and description automatically according to the category of the current post. I've used the following code, but it doesn't worked.
{% if page.categories = "category" %}
{% else %}
{% endif %}
But while using {% page.categories %}
it is echoing out the category name correctly. Here are my two doubts:
- How can I compare the current post's category?
- Are
{{ }}
and{% %}
are same here?