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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Mediaelement example</title> | |
<script src="{{ paths.theme }}javascripts/jquery-1.9.1.min.js"></script> | |
<script src="http://mediaelementjs.com/js/mejs-2.11.2/mediaelement-and-player.min.js"></script> | |
<link rel="stylesheet" href="http://mediaelementjs.com/js/mejs-2.11.2/mediaelementplayer.min.css" /> | |
<link rel="stylesheet" href="http://mediaelementjs.com/js/mejs-2.11.2/mejs-skins.css" /> |
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
<script type="text/javascript"> | |
if (top != self) { | |
setInterval("alert('Redirecting to example.org, please wait.');top.location.replace('http://example.org/')", 1000); | |
} | |
</script> |
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
{# the array of options, in config.. #} | |
{{ print(config.taxonomy.categories.options) }} | |
{# print all options #} | |
<ul> | |
{% for category in config.taxonomy.categories.options %} | |
<li> | |
<a href="{{ paths.root }}categories/{{category}}">{{category}}</a> | |
</li> | |
{% 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
{% 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> |
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
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
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
<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> |