Difference between revisions of "Global Liquid Snippet - headers"

From Spiffy Stores Knowledge Base

m (Created page with 'This snippet is used to include the basic page headers. The following headers are generated: * <nowiki><meta name="author"></nowiki> * <nowiki><meta name="copyright"></nowiki> …')
 
m
 
Line 9: Line 9:
  
 
Include the following code at the top of the <code><head></code> section in the <code>theme.liquid</code>.
 
Include the following code at the top of the <code><head></code> section in the <code>theme.liquid</code>.
 +
 +
For further information on the <code>header</code> variable, see [[Liquid Template Variables - header]].
  
 
<pre>
 
<pre>

Latest revision as of 11:10, 3 June 2011

This snippet is used to include the basic page headers.

The following headers are generated:

  • <meta name="author">
  • <meta name="copyright">
  • <meta name="description">
  • <meta name="keywords">

Include the following code at the top of the <head> section in the theme.liquid.

For further information on the header variable, see Liquid Template Variables - header.

{% include 'headers' %}

Return to Using Global Liquid snippets

Included code:

{{ header.author }}
{{ header.copyright }}
{{ header.description }}
{{ header.keywords }}