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
// More explicit information + handling the result | |
$.ajax('https://api.tumblr.com/v2/blog/codingjester.tumblr.com/posts', | |
{ | |
dataType:'jsonp', | |
data: { | |
limit : 1, | |
api_key : 'your_key' | |
}, | |
success: function(posts) { | |
var postings = posts.response.posts; |
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
.FORM_CLASS { | |
// Form styles | |
&--complete { | |
#submitForm { | |
position: relative; | |
&::after { | |
content: ""; | |
position: absolute; | |
z-index: 100; | |
cursor: not-allowed; |
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
<ul class="column-list"> | |
<li>One</li> | |
<li>Two</li> | |
<li>Three</li> | |
</ul> |
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
.gist { | |
.blob-wrapper { | |
padding: 15px 0; | |
background-color: #000; | |
.highlight { | |
background-color: #000; | |
} | |
td { | |
color: #fff; | |
} |
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
{% for key in collection %} | |
{% if forloop.first == true %} | |
<p>{{ key.data.dataName }}</p> | |
{% endif %} | |
{% endfor %} |
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
// Is child | |
function is_child($post_slug) { | |
global $post; | |
$parent_id = $post->post_parent; | |
$post_slug = get_post_field( 'post_name', $parent_id ); | |
if( is_page() && ($post_slug) ) { | |
return true; | |
} else { | |
return false; | |
} |