To turn off without having to add options:
# application.rb
config.generators.assets = false
config.generators.helper = false| sudo apt-get install libsecret-1-0 libsecret-1-dev | |
| cd /usr/share/doc/git/contrib/credential/libsecret | |
| sudo make |
| exports.createPages = ({ graphql, actions }) => { | |
| return graphql(` | |
| { | |
| site { | |
| siteMetadata { | |
| githubOrgs | |
| } | |
| } | |
| } | |
| `).then(result => { |
| #!/usr/bin/env ruby | |
| require 'csv' | |
| # This assumes: | |
| # - Ruby 1.9's CSV library, if you are using 1.8, use FasterCSV. | |
| # | |
| # https://raw.github.com/hadley/data-baby-names/master/baby-names.csv | |
| csv_fname = "baby-names.csv" |
| <?php | |
| /** | |
| * Set up the Grid Loop | |
| * @author Bill Erickson | |
| * @link http://www.billerickson.net/genesis-grid-loop-content/ | |
| * | |
| */ | |
| function child_grid_loop_helper() { | |
| genesis_grid_loop( array( | |
| 'features' => 2, |
| <?php | |
| add_filter( 'pre_get_posts', 'tgm_io_cpt_search' ); | |
| /** | |
| * This function modifies the main WordPress query to include an array of | |
| * post types instead of the default 'post' post type. | |
| * | |
| * @param object $query The original query. | |
| * @return object $query The amended query. | |
| */ | |
| function tgm_io_cpt_search( $query ) { |
| <?php | |
| class MyTheme | |
| { | |
| private function actionAfterSetup($function) | |
| { | |
| add_action('after_setup_theme', function() use ($function) { | |
| $function(); | |
| }); | |
| } |
| <?php | |
| /** | |
| * Register Multiple Taxonomies | |
| * | |
| * @author Bill Erickson | |
| * @link http://www.billerickson.net/code/register-multiple-taxonomies/ | |
| */ | |
| function be_register_taxonomies() { |
| <?php | |
| /** | |
| * This file adds new widget area called Home-ministry to the front page. | |
| * | |
| * Front page for the Utility Pro theme | |
| * | |
| * @package Utility_Pro | |
| * @author Carrie Dils | |
| * @license GPL-2.0+ | |
| */ |