Forked from eneajaho/Optimized SEO header for Blogger
Created
November 29, 2022 13:24
-
-
Save onkar-singh/e54a57621c5118d7c83b50cdfcf7a60a to your computer and use it in GitHub Desktop.
This Optimized SEO header for Blogger will rank you higher in search results.
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
<!-- [ Meta Tag SEO ] --> | |
<include expiration='7d' path='*.css'/> | |
<include expiration='7d' path='*.js'/> | |
<include expiration='3d' path='*.gif'/> | |
<include expiration='3d' path='*.jpeg'/> | |
<include expiration='3d' path='*.jpg'/> | |
<include expiration='3d' path='*.png'/> | |
<meta content='sat, 02 jun 2020 00:00:00 GMT' http-equiv='expires'/> | |
<meta charset='utf-8'/> | |
<meta content='width=device-width, initial-scale=1' name='viewport'/> | |
<meta content='blogger' name='generator'/> | |
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type'/> | |
<link href='http://www.blogger.com/openid-server.g' rel='openid.server'/> | |
<link expr:href='data:blog.homepageUrl' rel='openid.delegate'/> | |
<link expr:href='data:blog.url' rel='canonical'/> | |
<b:if cond='data:blog.pageType == "index"'> | |
<title><data:blog.pageTitle/></title> | |
<b:else/> | |
<b:if cond='data:blog.pageType != "error_page"'> | |
<title><data:blog.pageName/> - <data:blog.title/></title> | |
</b:if></b:if> | |
<b:if cond='data:blog.pageType == "error_page"'> | |
<title>Page Not Found - <data:blog.title/></title> | |
</b:if> | |
<b:if cond='data:blog.pageType == "archive"'> | |
<meta content='noindex' name='robots'/> | |
</b:if> | |
<b:if cond='data:blog.searchLabel'> | |
<meta content='noindex,nofollow' name='robots'/> | |
</b:if> | |
<b:if cond='data:blog.isMobile'> | |
<meta content='noindex,nofollow' name='robots'/> | |
</b:if> | |
<b:if cond='data:blog.pageType != "error_page"'> | |
<meta expr:content='data:blog.metaDescription' name='description'/> | |
<script type='application/ld+json'>{ "@context": "http://schema.org", "@type": "WebSite", "url": "<data:blog.homepageUrl/>", "potentialAction": { "@type": "SearchAction", "target": "<data:blog.homepageUrl/>?q={search_term}", "query-input": "required name=search_term" } }</script> | |
<b:if cond='data:blog.homepageUrl != data:blog.url'> | |
<meta expr:content='data:blog.pageName + ", " + data:blog.pageTitle + ", " + data:blog.title' name='keywords'/> | |
</b:if></b:if> | |
<b:if cond='data:blog.pageType == "index"'> | |
<meta content='YOUR DESCRIPTION HERE' name='description'/> | |
</b:if> | |
<meta content='YOUR KEYWORDS HERE' name='keywords'/> | |
<link expr:href='data:blog.homepageUrl + "feeds/posts/default"' expr:title='data:blog.title + " - Atom"' rel='alternate' type='application/atom+xml'/> | |
<link expr:href='data:blog.homepageUrl + "feeds/posts/default?alt=rss"' expr:title='data:blog.title + " - RSS"' rel='alternate' type='application/rss+xml'/> | |
<link expr:href='"http://www.blogger.com/feeds/" + data:blog.blogId + "/posts/default"' expr:title='data:blog.title + " - Atom"' rel='alternate' type='application/atom+xml'/> | |
<b:if cond='data:blog.pageType == "item"'> | |
<b:if cond='data:blog.postImageThumbnailUrl'> | |
<link expr:href='data:blog.postImageThumbnailUrl' rel='image_src'/> | |
</b:if></b:if> | |
<link expr:href='data:blog.url' hreflang='x-default' rel='alternate'/> | |
<link href='/favicon.ico' rel='icon' type='image/x-icon'/> | |
<link href='https://plus.google.com/USER-GOOGLE-PLUS/posts' rel='publisher'/> | |
<link href='https://plus.google.com/USER-GOOGLE-PLUS/about' rel='author'/> | |
<link href='https://plus.google.com/USER-GOOGLE-PLUS' rel='me'/> | |
<meta content='CODE-VALIDATION-GOOGLE-WEBMASTER' name='google-site-verification'/> | |
<meta content='CODE-VALIDATION-BING-WEBMASTER' name='msvalidate.01'/> | |
<meta content='YOUR-COUNTRY' name='geo.placename'/> | |
<meta content='YOUR-NAME' name='Author'/> | |
<meta content='general' name='rating'/> | |
<meta content='YOUR-COUNTRY-CODE' name='geo.country'/> | |
<!-- [ Social Media Meta Tag ] --> | |
<b:if cond='data:blog.pageType == "item"'> | |
<meta expr:content='data:blog.pageName' property='og:title'/> | |
<meta expr:content='data:blog.canonicalUrl' property='og:url'/> | |
<meta content='article' property='og:type'/> | |
</b:if> | |
<meta expr:content='data:blog.title' property='og:site_name'/> | |
<b:if cond='data:blog.url == data:blog.homepageUrl'> | |
<meta expr:content='data:blog.metaDescription' name='description'/> | |
<meta expr:content='data:blog.title' property='og:title'/> | |
<meta content='website' property='og:type'/> | |
<b:if cond='data:blog.metaDescription'> | |
<meta expr:content='data:blog.metaDescription' property='og:description'/> | |
<b:else/> | |
<meta expr:content='"Read " + data:blog.pageTitle + " to know what you've been searching for..."' property='og:description'/> | |
</b:if> | |
</b:if> | |
<b:if cond='data:blog.postImageUrl'> | |
<meta expr:content='data:blog.postImageUrl' property='og:image'/> | |
<b:else/> | |
<b:if cond='data:blog.postImageThumbnailUrl'> | |
<meta expr:content='data:blog.postThumbnailUrl' property='og:image'/> | |
<b:else/> | |
<meta content='url of your website logo' property='og:image'/> | |
</b:if> | |
</b:if> | |
<meta content='https://www.facebook.com/PROFILE-LINK' property='article:author'/> | |
<meta content='https://www.facebook.com/FAN-PAGE-FACEBOOK' property='article:publisher'/> | |
<meta content='CODE-APPLICATION-FACEBOOK' property='fb:app_id'/> | |
<meta content='CODE-ADMIN-FACEBOOK' property='fb:admins'/> | |
<meta content='en_US' property='og:locale'/> | |
<meta content='en_GB' property='og:locale:alternate'/> | |
<meta content='id_ID' property='og:locale:alternate'/> | |
<meta content='summary' name='twitter:card'/> | |
<meta expr:content='data:blog.pageTitle' name='twitter:title'/> | |
<meta content='USER-TWITTER' name='twitter:site'/> | |
<meta content='USER-TWITTER' name='twitter:creator'/> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment