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 the categories archive widget to add a span around post count | |
*/ | |
function smittenkitchen_cat_count_span( $links ) { | |
$links = str_replace( '</a> (', '</a><span class="post-count">(', $links ); | |
$links = str_replace( ')', ')</span>', $links ); | |
return $links; | |
} | |
add_filter( 'wp_list_categories', 'smittenkitchen_cat_count_span' ); |
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
/** | |
* External dependencies | |
*/ | |
import React from 'react'; | |
/** | |
* Internal dependencies | |
*/ | |
import './_style.scss'; |
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
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
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
[user] | |
name = sarah | |
email = sarah@triggersandsparks.com | |
[push] | |
default = matching | |
[pull] | |
rebase = true | |
[rerere] | |
enabled = true | |
[color] |
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
**/*.scss | |
**/*.md | |
**/*.txt | |
**/*.json | |
**/*.gitignore | |
**/gulpfile.js | |
LICENSE |
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
thing { | |
left: 50%; | |
transform: translate(-50%, 0); | |
} |
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, ol { | |
margin: 0 0 1.5em 0; | |
padding: 0; | |
} | |
ul { | |
list-style: disc; | |
} | |
ol { |
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
/* | |
* Let's customize our excerpt a bit, so it looks better | |
* First we decrease the default excerpt length, then | |
* we give it a proper hellip for the more text. | |
*/ | |
function themeslug_custom_excerpt_length( $length ) { | |
return 27; | |
} | |
add_filter( 'excerpt_length', 'themeslug_custom_excerpt_length', 999 ); |
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
@mixin mobile { | |
@media (max-width: #{$size__tablet-width - 1px}) { | |
@content; | |
} | |
} | |
@mixin tablet { | |
@media (min-width: #{$size__tablet-width}) { | |
@content; | |
} |
NewerOlder