Skip to content

Instantly share code, notes, and snippets.

View paultibbetts's full-sized avatar

Paul Tibbetts paultibbetts

View GitHub Profile
@paultibbetts
paultibbetts / jekyll.ics
Created September 22, 2016 16:09 — forked from woodworker/jekyll.ics
a jekyll template for icalendar file
---
layout: none
---
BEGIN:VCALENDAR
VERSION:2.0
PRODID:http://www.example.com/
METHOD:PUBLISH
{% for post in site.posts limit:10 %}BEGIN:VEVENT
UID:{{ post.date | date: "%Y%m%d" }}@example.com
ORGANIZER;CN="Organizer Name":MAILTO:organizer@example.org
@paultibbetts
paultibbetts / acf-page-ancestor-location-rule.php
Last active May 9, 2016 13:03 — forked from Hube2/acf-page-ancestor-location-rule.php
Advanced Custom Fields - Page Ancestor Custom Location Rule
<?php
/*
ACF custom location rule : Page Ancestor
*/
add_filter('acf/location/rule_types', 'acf_location_rules_page_ancestor');
function acf_location_rules_page_ancestor($choices) {
$choices['Page']['page_ancestor'] = 'Page Ancestor';
return $choices;
}
<?php
/*
Plugin Name: Blavatars
Plugin URI: https://gist.github.com/1724438
Description: Use Gravatar as a blogs avatar (Web Clip, Favicon, ...)
Version: 0.1
Author: Matthias Pfefferle
Author URI: http://notizblog.org/
*/