{% set_keywords %}

Use this tag to set the meta keywords for the current page

Syntax

Syntax: {% set_keywords expression %}

Examples

Set keywords

Copy
Template: {% set_keywords page.keywords | prepend: ", " | default: "" | prepend: ", design" | prepend: site.name %} Or: {% capture pageKeywords %}{{ site.name }}, design{% if page.keywords != "" %}, {{ page.keywords }}{% endif %}{% endcapture %}{% set_keywords pageKeywords %} Output: [site.name], design, [page.keywords]