Skip to content

Instantly share code, notes, and snippets.

View peteeveleigh's full-sized avatar

Pete Eveleigh peteeveleigh

View GitHub Profile
@peteeveleigh
peteeveleigh / archive.php
Created January 19, 2014 18:36
Create a news archive of posts in Kirby
<?php
$archive = array();
$articles = $pages->find('news')
->children()
->visible()
->sortBy($sort='date', $dir='desc');
<?php if(!defined('KIRBY')) exit ?>
# default blueprint
title: Home
pages: true
files: true
fields:
title:
label: Title
@peteeveleigh
peteeveleigh / _tweets.html
Last active December 25, 2015 21:08
Snippet to use with Click Rain's EE_Twitter add-on for ExpressionEngine (available here https://github.com/click-rain/EE_Twitter)
{exp:twitter:user screen_name="YOURTWITTERNAME" limit="5"}
{if no_results}
<p>No tweets to display</p>
{/if}
<article class="row {if retweeted}retweet{/if}">
{if retweeted}
<div class="retweetedavatars">
<img class="avatar retweeter" src="{retweeter:profile_image_url}">
<img class="avatar source" src="{profile_image_url}">