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
# Function to trim the excerpt | |
if (!function_exists('narga_excerpts')) : | |
function narga_excerpts($content = false) { | |
# If is the home page, an archive, or search results | |
if(is_front_page() || is_archive() || is_search()) : | |
global $post; | |
$content = $post->post_excerpt; | |
$content = strip_shortcodes($content); | |
$content = str_replace(']]>', ']]>', $content); | |
$content = strip_tags($content); |
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
WebFontConfig = { | |
google: { families: [ 'Istok+Web:400,700:latin' , 'Lora:400,700:latin' ] } | |
}; | |
(function() { | |
var wf = document.createElement('script'); | |
wf.src = ('https:' == document.location.protocol ? 'https' : 'http') + '://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js'; | |
wf.type = 'text/javascript'; | |
wf.async = 'true'; | |
var s = document.getElementsByTagName('script')[0]; | |
s.parentNode.insertBefore(wf, s); |
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
# This goes in _plugins/excerpt.rb | |
module Jekyll | |
class Post | |
alias_method :original_to_liquid, :to_liquid | |
def to_liquid | |
original_to_liquid.deep_merge({ | |
'excerpt' => content.match('<!--more-->') ? content.split('<!--more-->').first : nil | |
}) | |
end | |
end |
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
# Jekyll category page generator. | |
# http://recursive-design.com/projects/jekyll-plugins/ | |
# | |
# Version: 0.1.4 (201101061053) | |
# | |
# Copyright (c) 2010 Dave Perrett, http://recursive-design.com/ | |
# Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php) | |
# | |
# A generator that creates category pages for jekyll sites. | |
# |
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
/* | |
* Check if Jetpack Modules Are Enabled | |
* carousel | |
* contact-form | |
* custom-css | |
* gravatar-hovercards | |
* infinite-scroll | |
* minileven (mobile theme) | |
* sharedaddy | |
* shortcodes |