{{ header_tags }}

The header tags object is simply a shortcut placeholder for all of the tags that the system can determine should be output in the document header. This includes the page's "browser_title", "meta_description", "keywords", "meta_robots", and "canonical_url" values, as well as any scripts and stylesheets added to the head via the {% add_javascript %} and {% add_stylesheet %} tags.

Note that this object will only be evaluated once - if it is included twice in the document, the tags will still only be added once.

Properties

string object_type
Will always be "header_tags".
true/false is_valid
Always true.
list stylesheets
The list of stylesheet URLs to include in the output from {{ header_tags }}.
list header_scripts
The list of scripts to include in the output from {{ header_tags }}. Each script contains a string url, true/false async, and string defer.
list body_scripts
The list of scripts to include in the output from {{ body_tags }}. Each script contains a string url, true/false async, and string defer.
true/false show_preview_code
True if the template is being rendered on the preview site and is being viewed from the edit page interface.
true/false show_edit_link
True if live editing is enabled for the current site, the template is being rendered on the live site, and the user requesting the page is a site administrator who is currently logged into Marketpath CMS.

Examples

<head>
    {{ header_tags }}
</head>
{% if header_tags.show_edit_link %}
    <strong>Hello administrator!</strong>
{% endif %}

Developer Overview

Liquid Markup