- create a project we can develop locally and then push to heroku
- automate deployment as much as is practical
- avoid storing built resources in master branch
- avoid storing development npm modules in production
- configure the project to behave appropriately in each environment
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
<?php | |
function as_custom_logo() { | |
echo ' | |
<style type="text/css"> | |
#header-logo { background-image: url('.get_bloginfo('template_directory').'/images/myIcon.png) !important; } | |
</style> | |
'; | |
} |
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
<?php | |
/* | |
Plugin Name: Vimeo oembed hotfix | |
Plugin URI: | |
Description: Enable https vimeo embeds. <strong>Note</strong>: If for any reason videos are not embedding properly, simply deactivate, and then reactivate this plugin. | |
Author: gluten | |
Version: 2.0 | |
Author URI: http://belabor.org/ | |
*/ |
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
@charset "utf-8"; | |
html, body, body div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary, time, mark, audio, video | |
{ margin: 0; padding: 0; border: 0; font-size: 100%; vertical-align: baseline; } | |
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section | |
{ display: block } | |
blockquote, q { quotes: none } |
_data/nav.yml
LabelScope:
alt: Tour
subdirs:
- Download
- Support
- Printers
MASS:
This is a hack on Statamic's Suggest fieldtype to allow options to be passed in via a separate file. This way global variables can populate the options.
Paste the code from ft.suggest.hack.php
into cp/fieldtypes/suggest/ft.suggest.php
after the "Hardcoded list of options" section.
In your fieldset, do something like this:
brand:
display: Brand
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
/* | |
This file will read a bunch of Jekyll formatted `.md` posts in a folder, | |
grab the date from the filename and write it into the front-matter. | |
Files are copied to a new folder, rather than overwritten. | |
Requirements: `npm install lodash`, and that's it! | |
*/ | |
var fs = require('fs'), |
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
{% set allEvents = craft.entries.section('events').find() %} | |
{% set futureEvents = [] %} | |
{% for event in allEvents %} | |
{% if event.startDate | date('U') >= 'now' | date('U') %} | |
{% set futureEvents = futureEvents | merge([event]) %} | |
{% endif %} | |
{% endfor %} | |
{% for date, events in futureEvents | sortByField('startDate') | group('startDate|date("F Y")') %} |
OlderNewer