Ascribe

The Layout Template

This template contains the overall skeleton of your site: the wrapper that the other templates slide into. Things like the headers, footers, and other common elements would go best here.

Placeholders

The layout template includes three placeholders where content from other templates will be inserted when the final page is rendered:

title
You can use this placeholder to supply a page title (shown at the top of the browser window when someone visits your page). For example, the standard Portfolio template uses the assign tag to supply a title: {% assign title = 'Portfolio' %}
content_for_head
You can use this placeholder to insert your own template-specific content into the head section of the page when it is rendered in a specific context. For example, the default project template uses this placeholder to add an additional stylesheet via the capture tag:
{% capture 'content_for_head' %}
	<link href="/stylesheets/public/project.css" media="screen" rel="Stylesheet" type="text/css" charset="utf-8" />
{% endcapture %}
content_for_layout
This placeholder marks the place where the actual page (such as home, portfolio, or product) will be displayed.

Variables

Variables from the regular templates are also available within the layout template: you have access to the company, project, photos, and so on depending on which page is being viewed.

Tags

Additionally, within the layout template, there are several liquid tags available.

footer
Returns a formatted footer specifically designed for the Ascribe templates.
For example:
{% footer %}
will display a footer div along with the Ascribe links.
favicon
Automatically pulls in the specifically designed favicon for the Ascribe templates.