Skip to content

Instantly share code, notes, and snippets.

View bastianallgeier's full-sized avatar
🎯
Focusing

Bastian Allgeier bastianallgeier

🎯
Focusing
View GitHub Profile
@marcelotten
marcelotten / itunesfeed.php
Created July 27, 2012 09:14
Kirby iTunes-Feed
<?php
// get any list of items
// in this case we get all visible children of the blog section,
// flip them to get them in reverse order and make sure we only get the last 10
$items = $pages->find($page->podcast())->children()->visible()->flip()->limit(25);
$podcast = $pages->find($page->podcast());
// defaults
if(!isset($descriptionExcerpt)) $descriptionExcerpt = true;
@nocksock
nocksock / readme.mdown
Created January 26, 2012 12:52
Quick and Dirrrty Update-Script for kirby

How To?

Simply put the update.sh into the root of your kirby-project. next to kirby/, content/, site/ and other folders. Make it executable with chmod a+x update.sh and execute it with ./update.sh everytime you want to update your kirbycms to the latest version - from within the command line of course.

Requirements

Though it is obvious: you need git.