View genesis-sample-page
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/" /> |
View post_book_template.php
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() { |
View remove-inline-image-widths.php
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] ); | |
} |
View tag-cloud-number.php
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; | |
} |
View genesis-image-above-content.php
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); |
View language-learning
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
--- | |
layout: category | |
title: Language Learning | |
description: Some thoughts on adult language learning that fall outside the standard techniques of translation and grammar study. | |
category: language learning | |
permalink: /language-learning/ | |
--- | |
If you were hoping for some original research, sadly I have none. What follows has already been written about elsewhere and by people far smarter than me. What I hope to bring to the conversation is a simplified version of their work and my story in discovering it. But more importantly, I hope to introduce you to some thoughts on adult language learning that fall outside the standard techniques of translation and grammar study. |
View post-categories.html
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
{% if post %} | |
{% assign categories = post.categories %} | |
{% else %} | |
{% assign categories = page.categories %} | |
{% endif %} | |
{% for category in categories %} | |
<span class="entry-categories"><a href="{{ site.url }}/{{ page.category-url }}/" rel="category">{{ page.category }}</a></span>{% unless forloop.last %},{% endunless %} | |
{% endfor %} |
View post-categories.html
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
<span class="entry-categories"><a href="{{ site.url }}/{{ page.category-url }}/" rel="category">{{ page.category }}</a></span> |
View install.sh
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
#!/bin/bash | |
# Download boilerplate files | |
wget https://github.com/bradonomics/genesis-boilerplate/archive/master.tar.gz | |
# Unzip | |
tar zxf master.tar.gz | |
cd genesis-boilerplate-master | |
cp -rpf * ../ | |
cp -rpf .[^.]* ../ # moves .gitignore |
View install.sh
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
#!/bin/bash | |
# Download boilerplate files | |
wget https://github.com/bradonomics/jekyll-boilerplate/archive/master.tar.gz | |
# Unzip | |
tar zxf master.tar.gz | |
cd jekyll-boilerplate-master | |
cp -rpf * ../ | |
cp -rpf .[^.]* ../ # moves .gitignore |
OlderNewer