Skip to content

Instantly share code, notes, and snippets.

@abmac
Created November 14, 2012 11:04
Show Gist options
  • Select an option

  • Save abmac/4071542 to your computer and use it in GitHub Desktop.

Select an option

Save abmac/4071542 to your computer and use it in GitHub Desktop.
index only homepage and post
<b:if cond='data:blog.pageType == &quot;item&quot;'>
<meta content='index,follow,noarchive,noodp' name='robots'/>
</b:if>
<b:if cond='data:blog.pageType == &quot;index&quot;'>
<b:if cond='data:blog.url == data:blog.homepageUrl'>
<meta content='index,follow,noarchive,noodp' name='robots'/>
<b:else/>
<meta content='noindex,follow,noarchive,noodp' name='robots'/>
</b:if>
</b:if>
<b:if cond='data:blog.pageType == &quot;archive&quot;'>
<meta content='noindex,follow,noarchive,noodp' name='robots'/>
</b:if>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment