Skip to content

Instantly share code, notes, and snippets.

View rajeevedmonds's full-sized avatar
🏠
Working from home

Rajeev Edmonds rajeevedmonds

🏠
Working from home
View GitHub Profile

Keybase proof

I hereby claim:

  • I am rajeevedmonds on github.
  • I am rajeevedmonds (https://keybase.io/rajeevedmonds) on keybase.
  • I have a public key whose fingerprint is FF86 4111 70C9 42D1 B001 ED91 6175 BAC2 B5D0 EFBF

To claim this, I am signing this object:

<rule name="rule 1q">
<match url=".*" />
<action type="Rewrite" url="/-" />
</rule>
<rule name="rule 2q" stopProcessing="true">
<match url="^(af|sq|am|ar|hy|az|eu|be|bn|bs|bg|ca|ceb|ny|zh-CN|zh-TW|co|hr|cs|da|nl|en|eo|et|tl|fi|fr|fy|gl|ka|de|el|gu|ht|ha|haw|iw|hi|hmn|hu|is|ig|id|ga|it|ja|jw|kn|kk|km|ko|ku|ky|lo|la|lv|lt|lb|mk|mg|ms|ml|mt|mi|mr|mn|my|ne|no|ps|fa|pl|pt|pa|ro|ru|sm|gd|sr|st|sn|sd|si|sk|sl|so|es|su|sw|sv|tg|ta|te|th|tr|uk|ur|uz|vi|cy|xh|yi|yo|zu)/(af|sq|am|ar|hy|az|eu|be|bn|bs|bg|ca|ceb|ny|zh-CN|zh-TW|co|hr|cs|da|nl|en|eo|et|tl|fi|fr|fy|gl|ka|de|el|gu|ht|ha|haw|iw|hi|hmn|hu|is|ig|id|ga|it|ja|jw|kn|kk|km|ko|ku|ky|lo|la|lv|lt|lb|mk|mg|ms|ml|mt|mi|mr|mn|my|ne|no|ps|fa|pl|pt|pa|ro|ru|sm|gd|sr|st|sn|sd|si|sk|sl|so|es|su|sw|sv|tg|ta|te|th|tr|uk|ur|uz|vi|cy|xh|yi|yo|zu)/(.*)$" />
<action type="Rewrite" url="//{R:1}/{R:3}" />
</rule>
<rule name="rule 3q" stopProcessing="true">
<match url="^(af|sq|am|ar|hy|az|eu|be|bn|bs|bg|ca|ceb|ny|zh-CN|zh-TW|co|hr|cs|da|nl|en|eo|et|tl|fi|fr|fy|gl|ka|de|el|gu|
@rajeevedmonds
rajeevedmonds / gist:d5ee0416723d16e328a1
Created June 5, 2015 11:19
Twitter card meta data for blogger template
<b:if cond='data:blog.pageType == &quot;item&quot;'>
<meta content='@yourtwitterhandle' name='twitter:site'/>
<meta content='yourdomainname.com' name='twitter:domain'/>
<meta content='@yourtwitterhamdle' name='twitter:creator'/>
<b:if cond='data:post.firstImageUrl'>
<meta content='photo' name='twitter:card'/>
<meta expr:content='data:post.firstImageUrl' name='twitter:image'/>
<b:else/>
<meta content='summary' name='twitter:card'/>
<b:if cond='data:blog.postImageThumbnailUrl'>
#site-logo img {
border: 1px solid #dedee0;
background-color: #f8f6f7;
padding: 5px;
display: block;
max-height: 100px;
max-width: 100px;
width: auto;
margin: 0 auto;
line-height: 0;
.gist {
margin-top: 1em;
margin-bottom: 1em;
border-collapse: collapse !important;
}
.gist .gist-file {
font-family: "Consolas", Courier, monospace;
border: 1px solid rgba(0, 0, 0, 0.05) !important;
}
.gist .gist-file .gist-meta {
<?php get_header(); ?>
<div id="post-content">
<?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?>
<div class="post">
<h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
<div class="entry">
<?php the_excerpt(); ?>
<?php get_header(); ?>
<div id="post-content">
<?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?>
<div class="post">
<h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>
<div class="entry">
<?php the_content(); ?>
<div class="sidebar">
<?php if ( is_sidebar_active('widget_area') ) : ?>
<div id="primary" class="widget-area">
<ul class="sidebar-list">
<?php dynamic_sidebar('widget_area'); ?>
</ul>
</div>
<?php endif; ?>
</div>
function is_sidebar_active( $count ){
global $wp_registered_sidebars;
$widgetcols = wp_get_sidebars_widgets();
if ($widgetcols[$count]) return true;
return false;
}