Liquid Template Variables - header
From Spiffy Stores Knowledge Base
The liquid template variable header has the following attributes:
These variables should all appear within the <head> section in your theme.liquid file.
<head> ... {{ header.author }} {{ header.copyright }} {{ header.description }} {{ header.keywords }} ... </head>
Contents
header.author
This variable generates a
<meta name="author" content="Content by your store...">
This is used to specify the authorship of the page's content and design.
header.copyright
This variable generates a
<meta name="copyright" content="Content Copyright (c) 2010 by your store...">
This is used to specify the copyright of the page's content and design.
header.description
This variable generates a
<meta name="description" content="page description...">
The page description varies by page type. For product pages, a short description is included based upon the product description and vendor and product type.
Similarly, collections pages use the description of the collection.
Pages, Blogs and Articles extract a description from the page content, and in addition, Blog Articles include the author and the time the article was published.
These descriptive attributes are tagged and search engines can use the information to produce meaningful snippets for use in search results.
header.plain_description
This variable generates a
<meta name="description" content="page description...">
This variable is similar to the description
variable, but all descriptions are generated without the additional tagged attributes that are generated by description
.
header.keywords
This variable generates a
<meta name="keywords" content="key1,key2,key3...">
The keywords are generated from the tags that are associated with the product or collection being displayed.
Generally, the keywords meta tag is not used by search engines.