Difference between revisions of "Liquid Template Variables - header"
From Spiffy Stores Knowledge Base
m |
m |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | The | + | The Liquid template variable '''header''' has the following attributes: |
These variables should all appear within the <head> section in your [[Theme.liquid | theme.liquid]] file. | These variables should all appear within the <head> section in your [[Theme.liquid | theme.liquid]] file. | ||
Line 44: | Line 44: | ||
These descriptive attributes are tagged and search engines can use the information to produce meaningful snippets for use in search results. | These descriptive attributes are tagged and search engines can use the information to produce meaningful snippets for use in search results. | ||
+ | |||
+ | == <code>header.plain_description</code> == | ||
+ | |||
+ | This variable generates a | ||
+ | |||
+ | <pre><meta name="description" content="page description..."></pre> | ||
+ | |||
+ | This variable is similar to the <code>description</code> variable, but all descriptions are generated without the additional tagged attributes that are generated by <code>description</code>. | ||
== <code>header.keywords</code> == | == <code>header.keywords</code> == | ||
Line 54: | Line 62: | ||
Generally, the keywords meta tag is not used by search engines. | Generally, the keywords meta tag is not used by search engines. | ||
+ | |||
+ | == Further Reference == | ||
+ | |||
+ | * [[Liquid Basics]] | ||
+ | * [[Liquid Tag Reference]] | ||
+ | * [[Liquid Filter Reference]] | ||
+ | * [[Liquid Variable Reference]] | ||
+ | * [[Liquid Paginate Tag|Pagination ]] |
Latest revision as of 13:17, 25 June 2018
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.