Dan Nixon turboclaw

View localeFormattedDate.js
1 2 3 4 5 6 7 8 9
// use in .hbs template: {{localeFormattedDate dateToConvert}}
 
Handlebars.registerHelper("localeFormattedDate", function( context, block ) {
if ( window.moment ) {
return moment( Date(context) ).format( config.locale.dateFormat );
}else{
return context;
}
});
View gist:4324786
1 2 3 4 5 6 7 8
<?php
 
$images = get_children('post_parent='.$post->ID.'&post_type=attachment&post_mime_type=image&numberposts=1&order=ASC');
if(!empty($images)){
echo wp_get_attachment_image(reset($images)->ID, array(75,75));
}
 
?>
View sidebar.php
1 2 3 4 5 6 7 8 9 10
<div class="rightside">
 
<a href="index.html"><img src="images/bfglogo.png" class="bfglogo"></a>
<p class="name">
Josh A. Weston
</p>
<p class="subhead">
Strategy | Art direction | Design
</p>
<p class="date">
View header.php
1 2 3 4 5 6 7 8 9 10
<!DOCTYPE HTML>
<html>
<head>
<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='http://fonts.googleapis.com/css?family=Amatic+SC:400,700' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'>
 
<?php if(is_single()) { /* Only load lightbox if on a single post */ ?>
View single.php
1 2 3 4 5 6 7 8 9 10
<?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
1 2 3 4 5 6 7 8 9
/* Animate max-height instead! */
 
div {
max-height: 1em;
transition: 1s;
}
div:hover {
max-height: 1000em;
}
Something went wrong with that request. Please try again.