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
<!DOCTYPE html> | |
<html lang="en-US"> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>Blog Post Title</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
<meta name='robots' content='index,follow' /> | |
<link rel="alternate" type="application/rss+xml" title="WordPress Weblog » Feed" href="http://wordpressweblog.org/feed/" /> | |
<link rel="alternate" type="application/rss+xml" title="WordPress Weblog » Comments Feed" href="http://wordpressweblog.org/comments/feed/" /> |
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 | |
/** | |
* | |
* Custom Blog Loop for Bradonomics. | |
* | |
* Template Name: Bradonomics Blog | |
* | |
*/ | |
//* Remove standard post content output |
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 | |
/* | |
* Single Post Template: Book Review | |
* | |
*/ | |
//* Add Aside for Buy the Book Info | |
add_action( 'genesis_entry_content', 'bw_book_review', 30 ); | |
function bw_book_review() { |
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
//* Strip width from image captions to allow responsive code to shrink images. | |
add_shortcode('wp_caption', 'fixed_img_caption_shortcode'); | |
add_shortcode('caption', 'fixed_img_caption_shortcode'); | |
function fixed_img_caption_shortcode($attr, $content = null) { | |
if ( ! isset( $attr['caption'] ) ) { | |
if ( preg_match( '#((?:<a [^>]+>\s*)?<img [^>]+>(?:\s*</a>)?)(.*)#is', | |
$content, $matches ) ) { | |
$content = $matches[1]; | |
$attr['caption'] = trim( $matches[2] ); | |
} |
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
//* Limit the number of tags in the tag cloud widget | |
add_filter( 'widget_tag_cloud_args', 'my_widget_tag_cloud_args' ); | |
function my_widget_tag_cloud_args( $args ) { | |
$args = array( | |
'number' => 32, | |
); | |
return $args; | |
} |
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 | |
//* Call the First Image in a Post (Used in the Open Graph Call Below) | |
function catch_first_image() { | |
global $post, $posts; | |
$first_img = ''; | |
ob_start(); | |
ob_end_clean(); | |
$output = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $post->post_content, $matches); | |
$first_img = $matches [1] [0]; |
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 | |
//* Adds Feature Image before entry-content tag | |
add_action ( 'genesis_entry_header', 'bw_featured_image' ); | |
function bw_featured_image() { | |
if ( !is_singular() || !has_post_thumbnail() ) | |
return; | |
echo '<div class="featured-image">'; | |
genesis_image( array( 'size' => 'singular' ) ); | |
$args = array( 'post_type' => 'attachment', 'orderby' => 'menu_order', 'order' => 'ASC', 'post_mime_type' => 'image' ,'post_status' => null, 'numberposts' => null, 'post_parent' => $post->ID ); | |
$attachments = get_posts($args); |
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
/* Grid | |
-------------------------------------------------- */ | |
.column { | |
position: relative; | |
float: left; | |
min-height: 1px; | |
padding-right: 15px; | |
padding-left: 15px; | |
} |
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
### Jekyll ### | |
_site | |
.jekyll-metadata | |
*-cache/ | |
### NPM ### | |
/node_modules/ | |
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
### Gulp ### | |
.sass-cache | |
package.json | |
/node_modules/ | |
### Atom ### | |
.ftpconfig | |
.sftpconfig |
OlderNewer