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
// call function | |
$(document).ready(function() { | |
var twitterFeed = TWITTER_PARSE_LINKS("#js-twitterFeed"); | |
}); |
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
var checkSupport = function checkSupport(el) { | |
if (!(el in document.documentElement.style)) { | |
document.body.className+= ' NoSupport-' + el; | |
}; | |
}; | |
var test = checkSupport('backgroundSize'); | |
/* | |
OPTIONS |
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 | |
/** | |
* credit: https://github.com/humanmade/hm-core/blob/master/hm-core.functions.php#L1236 | |
* Like get_template_part() put lets you pass args to the template file | |
* Args are available in the tempalte as $template_args array | |
* @param string filepart | |
* @param mixed wp_args style argument list | |
*/ | |
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
whitelist: [ | |
'p', | |
'h1', | |
'h2', | |
'h3', | |
'h4', | |
'h5', | |
'h6', | |
'hr', | |
'ol', |
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
const ExtractCSS = require('mini-css-extract-plugin') | |
const OptimizeCssAssetsPlugin = require('optimize-css-assets-webpack-plugin') | |
function tailwindPreset({ config, watch }) { | |
config.module.rules.push({ | |
test: /\.css$/, | |
exclude: /node_modules/, | |
use: [ | |
ExtractCSS.loader, | |
require.resolve('css-loader'), |