Skip to content
View localeFormattedDate.js
// use in .hbs template: {{localeFormattedDate dateToConvert}}
Handlebars.registerHelper("localeFormattedDate", function( context, block ) {
if ( window.moment ) {
return moment( Date(context) ).format( config.locale.dateFormat );
return context;
View gist:4324786
$images = get_children('post_parent='.$post->ID.'&post_type=attachment&post_mime_type=image&numberposts=1&order=ASC');
echo wp_get_attachment_image(reset($images)->ID, array(75,75));
View sidebar.php
<div class="rightside">
<a href="index.html"><img src="images/bfglogo.png" class="bfglogo"></a>
<p class="name">
Josh A. Weston
<p class="subhead">
Strategy | Art direction | Design
<p class="date">
View header.php
<title><?php bloginfo('name'); ?><?php wp_title('|'); ?></title>
<link rel="icon" href="<?php bloginfo('template_directory'); ?>/favicon.ico" type="image/x-icon">
<link rel="stylesheet" media="all" href="<?php bloginfo('stylesheet_url'); ?>" />
<link href=',700' rel='stylesheet' type='text/css'>
<link href=',700' rel='stylesheet' type='text/css'>
<?php if(is_single()) { /* Only load lightbox if on a single post */ ?>
View single.php
<?php get_header(); ?>
<div class="leftside">
<?php while ( have_posts() ) : the_post(); ?>
<h3 class="title"><?php the_title(); ?></h3>
<h4 class="date"> ... </h4>
<div class="description">
<?php the_content(); ?>
View gist:3785519
/* Animate max-height instead! */
div {
max-height: 1em;
transition: 1s;
div:hover {
max-height: 1000em;
Something went wrong with that request. Please try again.