postxml-amp
Advanced tools
Comparing version 0.2.2 to 0.2.3
10
index.js
@@ -37,2 +37,12 @@ var fs = require('fs'); | ||
/* meta viewport */ | ||
if ($('head meta[content="width=device-width,minimum-scale=1,initial-scale=1"]').length === 0) { | ||
$('head').append('<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">'); | ||
} | ||
/* style amp-boilerplate */ | ||
if ($('head style[amp-boilerplate]').length === 0) { | ||
$('head').append('<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>'); | ||
} | ||
/* adding main amp library */ | ||
@@ -39,0 +49,0 @@ if ($('head script[src="https://cdn.ampproject.org/v0.js"]').length === 0) { |
{ | ||
"name": "postxml-amp", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"description": "PostXML plugin to convert plain HTML to Google Accelerated Mobile Pages (AMP)", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -47,13 +47,16 @@ # postxml-amp | ||
## Release History | ||
* 0.2.3 | ||
* ADD: meta tag viewport | ||
* ADD: style amp-boilerplate | ||
* 0.2.2 | ||
* ADD: meta tag charset | ||
* ADD: AMP library script tag | ||
* ADD: meta tag charset | ||
* ADD: AMP library script tag | ||
* 0.2.1 | ||
* ADD: inline styles | ||
* ADD: amp-img tag | ||
* ADD: amp-video tag | ||
* ADD: unit tests | ||
* ADD: inline styles | ||
* ADD: amp-img tag | ||
* ADD: amp-video tag | ||
* ADD: unit tests | ||
* 0.1.0 | ||
* ADD: AMP HTML tag | ||
* Work in progress | ||
* ADD: AMP HTML tag | ||
* Work in progress | ||
@@ -60,0 +63,0 @@ ## Licence |
8033
111
69