Skip to content

Commit

Permalink
Fix structured data
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxLaumeister authored Jul 23, 2016
1 parent 4abf055 commit 52d2107
Showing 1 changed file with 28 additions and 32 deletions.
60 changes: 28 additions & 32 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,38 +16,34 @@
<script src="https://js.pusher.com/2.2/pusher.min.js"></script>
<script src="bitlisten.min.js" type="text/javascript"></script>

// Prevent the structured data from leaking into forks
if (window.location.hostname === "www.bitlisten.com") {
document.write(
'<script type="application/ld+json">' +
'{' +
' "@context": "http://schema.org",' +
' "@type": "WebApplication",' +
' "name": "BitListen",' +
' "alternateName": "Listen To Bitcoin",' +
' "url": "http://www.bitlisten.com",' +
' "applicationCategory": "Visualization",' +
' "license": "https://opensource.org/licenses/MIT",' +
' "operatingSystem": "all",' +
' "sameAs": [' +
' "https://en.wikipedia.org/wiki/BitListen",' +
' "https://www.wikidata.org/wiki/Q25990592",' +
' "https://www.maxlaumeister.com/projects/bitlisten/"' +
' ],' +
' "author": {' +
' "@type" : "Person",' +
' "name" : "Maximillian Laumeister",' +
' "url" : "https://www.maxlaumeister.com/"' +
' },' +
' "offers": {' +
' "@type": "Offer",' +
' "price": "0",' +
' "priceCurrency": "USD"' +
' }' +
'}' +
'</script>'
);
}
<!-- Structured data (remove or update this when forking BitListen) -->
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "WebApplication",
"name": "BitListen",
"alternateName": "Listen To Bitcoin",
"url": "http://www.bitlisten.com",
"applicationCategory": "Visualization",
"license": "https://opensource.org/licenses/MIT",
"operatingSystem": "all",
"sameAs": [
"https://en.wikipedia.org/wiki/BitListen",
"https://www.wikidata.org/wiki/Q25990592",
"https://www.maxlaumeister.com/projects/bitlisten/"
],
"author": {
"@type" : "Person",
"name" : "Maximillian Laumeister",
"url" : "https://www.maxlaumeister.com/"
},
"offers": {
"@type": "Offer",
"price": "0",
"priceCurrency": "USD"
}
}
</script>

<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
Expand Down

0 comments on commit 52d2107

Please sign in to comment.