{% extends 'layout.html' %} {% set crumbs = (('Docs',), ('Templates',)) %} {% set toc = ( ('Data', ( ('Globals', ( ('containers',), ('posts',), ('site',) )), ('Locals', ( ('archive',), ('item',), ('tag',) )) )), ('Filters', ( ('absolutize',), ('date',), ('items',), ('values',) )), ('Helpers', ( ('get_asset',), ('get_url',) )) ) %} {% block content %}
A dictionary of the defined content containers.
A container object.
Iterating over this object yields it's items.
A dictionary of the container's archive data.
{% raw %}{% for archive in container.archives|values %}
<h1>{{ archive.year }}</h1>
<ul>
{% for month, items in archive.months|items %}
<li>
<h1>{{ month }}</h1>
<ul>
{% for item in items %}
<li>{{ item.timestamp|date('%d') }} – <a href="{{ get_url(item.url) }}">{{ item.title }}</a></li>
{% endfor %}
</ul>
</li>
{% endfor %}
</ul>
{% endfor %}{% endraw %}
A dictionary of the container's tags.
{% raw %}{% for tag in container.tags|values %}
<li><a href="{{ get_url(tag.url) }}">{{ tag.name }} ({{ tag.count }})</a></li>
{% endfor %}{% endraw %}
A dictionary of archive data.
This variable is only available in archive_layout
templates.
archives_url
config setting.A dictionary of item data.
This variable is only available in layout
templates.
date_format
config setting.The contents of the first <p>
of content.
Only available for container items.
A list of the item's tags.
Only available for container items.
A tag object.
This variable is only available in tag_layout
templates.
Iterating over this object yields it's items.
tags_url
config setting.Attempts to convert all URLs in the supplied HTML to absolute URLs.
This filter depends on the domain
config setting.
Returns a formatted date based on the supplied timestamp and format.
{{ '{{ item.timestamp|date(\'%d %b %Y\') }}' }}
The timestamp to be formatted.
If None
, the current date and time will be used.
ts
.Returns the URL to the asset based on the base_url
and assets_url
config settings.
<link rel="stylesheet" href="{{ '{{ get_asset(\'css/screen.css\') }}' }}" type="text/css">
Returns a URL based on the base_url
config setting.
<a href="{{ '{{ get_url(item.url) }}' }}">{{ '{{ item.title }}' }}</a>
The requested URL.
This parameter is optional. If not supplied, the base_url
config setting will be returned.
Whether or not the returned URL should be an absolute URL.
This depends on the domain
config setting.