Skip to content

Instantly share code, notes, and snippets.

View budparr's full-sized avatar
🎯
Focusing

Bud Parr budparr

🎯
Focusing
View GitHub Profile
@budparr
budparr / Isotope Issues with Combination Filters and Hash State (solved).markdown
Last active August 29, 2015 14:21
Isotope Issues with Combination Filters and Hash State (solved)
@budparr
budparr / gist:103dcd0f3dbd6615761b
Created May 4, 2015 16:49
Webhook Prefetch for Prev/Next items
Place this in your head.
{% block head_extra %}
{% set prev = prevItem(item, 'publish_date', true) %}
{% set next = nextItem(item, 'publish_date', true) %}
{% if prev %}
<link rel="prefetch" href="{{ url(prev) }}" />
{% endif %}
{% if next %}
<link rel="prefetch" href="{{ url(next) }}" />
{% endif %}
@budparr
budparr / bourbon-headers-scale
Created May 3, 2015 04:54
Automatically scale header font sizes in Bourbon/Bitters
@for $i from 1 through 6 {
h#{$i} {
font-size: modular-scale((6 - $i), 1em, 1.2);
}
}
// via https://github.com/thoughtbot/bitters/issues/153#issuecomment-85744338
@budparr
budparr / gitignore
Created March 8, 2015 22:48
Basic gitignore for Webhook
lib-cov
*.seed
*.log
*.csv
*.dat
*.out
*.pid
*.gz
.DS_Store
.sass-cache
@budparr
budparr / serial-comma-swig
Created January 30, 2015 23:58
Serial comma with Swig Templating Language: "x and y" or "x, y, and z" (not url specific to Webhook)
<a href="{{ url(object) }}">{{ object.name }}</a>{% if loop.revindex != 2 %}{% if not loop.last %}, {% endif %}{% endif %}{% if loop.revindex == 2 %} and {% endif %}
@budparr
budparr / webhook-robots.txt
Created January 12, 2015 17:34
Webhook robots.txt file
User-Agent: *
Disallow:{% if getSetting('analytics_id') %} /cms/{% else %} /{% endif %}
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
// Simple, single configuration file to override almost all paths and server settings. As used by @airways
// and @litzinger.
// Only check in the default as dist.config.php, set your version control system to ignore config.php so that
// local users and each instance (staging, production) can have their own settings.
// These config files are mainly meant to be used on a shared development server used by all developers,
// although it works almost as well for local development as well.
@budparr
budparr / jekyll-collections-prev-next.html
Last active September 29, 2021 10:55
Previous Next Links for Jekyll Collections
{% capture the_collection %}{{page.collection}}{% endcapture %}
{% if page.collection %}
{% assign document = site[the_collection] %}
{% endif %}
<h1>TITLE: {{ page.title }}</h1>
{% for links in document %}
{% if links.title == page.title %}
{% unless forloop.first %}
{% assign prevurl = prev.url %}
{% endunless %}
@budparr
budparr / jekyll-layout-post
Last active March 20, 2018 15:02
Basic Jekyll layout for posts
---
layout: default
---
<div class="post">
<header class="post-header">
<h1 class="post-title">{{ page.title }}</h1>
</header>
<article class="post-content">
@budparr
budparr / jekyll-layout-default
Created December 2, 2014 13:09
Default basic layout for a Jekyll site
<!DOCTYPE html>
<html>
{% include head.html %}
<body>
{% include header.html %}
<div class="page-content">