<header>
<!-- stuff -->
</header><!-- end /header -->
<main>
<header>
<!-- main header stuff -->
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
# ----------------------- # | |
# Main Configs # | |
# ----------------------- # | |
url: http://samueldowens.github.io | |
title: Traversing the Internets | |
subtitle: Web Development in NYC | |
author: Samuel Owens | |
simple_search: http://google.com/search | |
description: |
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 if (have_posts()) : ?> | |
<?php if (($wp_query->post_count) > 1) : ?> | |
<?php while (have_posts()) : the_post(); ?> | |
<!-- Do your post header stuff here for excerpts--> | |
<?php the_excerpt() ?> | |
<!-- Do your post footer stuff here for excerpts--> | |
<?php endwhile; ?> | |
<?php else : ?> |
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
<multiline label="styles-override"> | |
<style type="text/css"> | |
.class {color: red;} | |
@media screen and (max-width: 479px) { | |
[class="class"] {color: blue;} | |
} | |
</style> | |
</multiline> | |
<p>or</p> |
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
$(document).ready(function() { | |
$('nav.primary a').click(function(event) { // the elements you click to scroll | |
event.preventDefault(); | |
var link = this; // you need this if you are using hash links on ex: a href="#link" to id="link" | |
$.smoothScroll({ | |
offset: -160, // adjusts where the scroll will stop so the height of the scrolling element plus the height of the element you are scrolling to. | |
speed: 2000, | |
scrollTarget: link.hash | |
}); | |
}); |
Action Mailer is a framework for designing email service layers. These layers are used to consolidate code for sending out forgotten passwords, welcome wishes on signup, invoices for billing, and any other use case that requires a written notification to either a person or another system.
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
/** | |
* Filter out hard-coded width, height attributes on all images in WordPress. | |
* https://gist.github.com/4557917 | |
* | |
* This version applies the function as a filter to the_content rather than send_to_editor. | |
* Changes made by filtering send_to_editor will be lost if you update the image or associated post | |
* and you will slowly lose your grip on sanity if you don't know to keep an eye out for it. | |
* the_content applies to the content of a post after it is retrieved from the database and is "theme-safe". | |
* (i.e., Your changes will not be stored permanently or impact the HTML output in other themes.) | |
* |
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 xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-us"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<meta http-equiv="content-language" content="en"> | |
<link rel="stylesheet" href="assets/style.css"> | |
<title> </title> | |
</head> | |
<body class="" role="document" aria-labelledby="document-desc"> |