Difference between revisions of "Liquid Template Variables - page description"
From Spiffy Stores Knowledge Base
(Created page with "The Liquid template variable '''page_description''' returns the current page description that can be used to generate the <nowiki><meta></nowiki> description HTML tag. This c...") |
m |
||
Line 7: | Line 7: | ||
<meta name="description" content="{{ page_description }}"/> | <meta name="description" content="{{ page_description }}"/> | ||
... | ... | ||
− | </head></pre> | + | </head> |
+ | </pre> | ||
The tag is automatically generated based on the type of page being displayed. A custom value can be provided for Products, Collections, Pages, Blogs and Articles through the SEO configuration option on the edit pages for these items. | The tag is automatically generated based on the type of page being displayed. A custom value can be provided for Products, Collections, Pages, Blogs and Articles through the SEO configuration option on the edit pages for these items. | ||
+ | |||
+ | == Further Reference == | ||
+ | |||
+ | * [[Liquid Basics]] | ||
+ | * [[Liquid Tag Reference]] | ||
+ | * [[Liquid Filter Reference]] | ||
+ | * [[Liquid Variable Reference]] | ||
+ | * [[Liquid Paginate Tag|Pagination ]] |
Latest revision as of 13:09, 25 June 2018
The Liquid template variable page_description returns the current page description that can be used to generate the <meta> description HTML tag.
This can be used in your theme.liquid file to provide a page description for Search Engine Optimization
<head> <title>{{shop.name}} - {{page_title}}</title> <meta name="description" content="{{ page_description }}"/> ... </head>
The tag is automatically generated based on the type of page being displayed. A custom value can be provided for Products, Collections, Pages, Blogs and Articles through the SEO configuration option on the edit pages for these items.