Skip to content

Instantly share code, notes, and snippets.

@aman5893
Created September 12, 2017 12:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aman5893/28cf0a6af934824517f6ded35b8b4d93 to your computer and use it in GitHub Desktop.
Save aman5893/28cf0a6af934824517f6ded35b8b4d93 to your computer and use it in GitHub Desktop.
<html>
<head>
<title><$BlogPageTitle$></title>
<script>
<MainOrArchivePage>
window.location.href="http://Domain.com/"
</MainOrArchivePage>
<Blogger>
<ItemPage>
window.location.href="http://Domain.com/?blogger=<$BlogItemPermalinkURL$>"
</ItemPage>
</Blogger>
</script>
<MainPage>
<link rel="canonical" href="http://Domain.com/" />
</MainPage>
<Blogger>
<ItemPage>
<link rel="canonical" href="http://Domain.com/?blogger=<$BlogItemPermalinkURL$>" />
</ItemPage>
</Blogger>
</head>
<body>
<MainOrArchivePage>
<h1><a href="http://Domain.com/"><$BlogTitle$></a></h1>
</MainOrArchivePage>
<Blogger>
<ItemPage>
<h1><a href="http://Domain.com/?blogger=<$BlogItemPermalinkURL$>"><$BlogItemTitle$></a></h1>
<$BlogItemBody$>
</ItemPage>
</Blogger>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment