This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"require": { | |
"silex/silex": "1.0.*@dev", | |
"twig/twig": ">=1.8,<2.0-dev", | |
"symfony/twig-bridge": "2.1.*" | |
}, | |
"minimum-stability": "dev" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"require": { | |
"silex/silex": "1.0.*@dev" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul> | |
{% for record in records %} | |
<li class="{% if loop.first %}first {% endif %}{% if loop.last %}last {% endif %} {{ cycle(["even", "odd"], loop.index) }}"> | |
<a href="{{ record.link }}">{{ record.title }}</a> | |
</li> | |
{% endfor %} | |
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tags: | |
slug: tags | |
singular_slug: tag | |
behaves_like: tags | |
categories: | |
slug: categories | |
singular_slug: category | |
behaves_like: categories | |
multiple: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
All Taxomomies: | |
{% if record.taxonomy is defined %} | |
{% for type, values in record.taxonomy %} | |
<em>{{ type }}:</em> | |
{% for link, value in values %} | |
<a href="{{ link }}"></a> | |
{% if not loop.last %}, {% endif %} | |
{% endfor %} | |
{% if not loop.last %} - {% endif %} | |
{% endfor %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
entries: | |
name: Entries | |
singular_name: Entry | |
fields: | |
title: | |
type: text | |
class: large | |
slug: | |
type: slug | |
uses: title |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% setcontent records = "entries/latest/10" allowpaging %} | |
{% for record in records %} | |
<article> | |
<div class="imageholder"><a href="{{ image(record.image) }}"> | |
<img src="{{ thumbnail(record.image, 400, 260) }}"> | |
</a></div> | |
<h3><a href="{{ record.link }}">{{ record.title }}</a></h3> | |
<p>{{ record.excerpt(220) }}</p> |
OlderNewer