Skip to content

Instantly share code, notes, and snippets.

@guillaumebort
Last active August 29, 2015 13:57
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 guillaumebort/9765767 to your computer and use it in GitHub Desktop.
Save guillaumebort/9765767 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Your prismic.io singlepage project</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="prismic-repository" content="https://lesbonneschoses.prismic.io/api">
<script src="js/prismic.io-1.0.9.js"></script>
<script src="js/prismic.io-singlepage-1.0.0.js"></script>
</head>
<body>
<script type="text/prismic-query" data-binding="featuredProducts">
[
[:d = any(document.type, ["product"])]
[:d = at(document.tags, ["Featured"])]
]
</script>
<script type="text/prismic-query" data-binding="blogPosts">
[
[:d = any(document.type, ["blog-post"])]
]
</script>
<h1><%= featuredProducts.length %> featured products:</h1>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment