Skip to content

Instantly share code, notes, and snippets.

@jgarciaruiz
Created January 13, 2018 20:32
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 jgarciaruiz/d86dc89953bd0cf1a0ad7a4881d6ac93 to your computer and use it in GitHub Desktop.
Save jgarciaruiz/d86dc89953bd0cf1a0ad7a4881d6ac93 to your computer and use it in GitHub Desktop.
hmtl amp basic template
<!DOCTYPE html>
<html amp lang="en">
<head>
<meta charset="utf-8">
<script async src="https://cdn.ampproject.org/v0.js"></script>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title></title>
<link rel="canonical" href="http://example.ampproject.org/article-metadata.html">
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
<style amp-custom>
body {
background-color: white;
}
amp-img {
background-color: black;
}
</style>
<!-- JSON-based Linked Data https://developers.google.com/schemas/formats/json-ld -->
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "",
"headline": "",
"url": "",
"datePublished": "2018-01-13T20:21:41Z",
"image": [
"logo.jpg"
],
"keywords": "",
"description": ""
}
</script>
<style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}</style><noscript><style amp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}</style></noscript>
</head>
<body>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment