Skip to content

Instantly share code, notes, and snippets.

@patrickcoombe
Created May 8, 2019 22: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 patrickcoombe/6fcaf9c5fd4fc0678b21a57052d06a60 to your computer and use it in GitHub Desktop.
Save patrickcoombe/6fcaf9c5fd4fc0678b21a57052d06a60 to your computer and use it in GitHub Desktop.
Speakable
<html>
<head>
<title>What does a yellow light mean?</title>
<meta name="description" content="" />
<script type="application/ld+json">
{
"@context": "https://schema.org/",
"@type": "WebPage",
"name": "Slow down! Your answer goes here, if you play your cards right maybe Google will speak it out loud and you'll be famous.I would personally keep this at about 300-500 words.",
"speakable":
{
"@type": "SpeakableSpecification",
"xpath": [
"/html/head/title",
"/html/head/meta[@name='description']/@content"
]
},
"url": "http://www.example.com/page/whatever"
}
</script>
</head>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment