{% set_description %}

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

Syntax

{% set_description expression %}

Examples

Template: {% set_description page.meta_description | prepend: ' says: "' | prepend: site.Name | append: '"' %}
Or: {% if page.meta_description != "" %}{% capture pageDescription %}{{ site.name }} says: "{{ page.meta_description }}"{% endcapture %}{% set_description pageDescription %}{% endif %}
Output: [site.name] says "[page.meta_description]"

Developer Overview

Liquid Markup