del: support for amplified mobile pages

This commit is contained in:
Tobi Schäfer 2020-04-03 11:18:51 +02:00
parent 72068d0d8c
commit c588441add
2 changed files with 0 additions and 54 deletions

View file

@ -306,45 +306,3 @@ else
</html>
<% #amp %>
<!doctype html>
<html ⚡>
<head>
<meta charset="utf-8">
<title><% param.title %></title>
<link rel="canonical" href="<% story.href %>" />
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "NewsArticle",
"author": {
"@type": "Person",
"name": "<% story.creator %>"
},
"dateModified": "<% story.modified iso %>",
"datePublished": "<% story.created iso %>",
"headline": "<% param.title %>",
"image": {
"@type": "ImageObject",
"url": "<% root.href %><% image /ant-icon.png url %>"
},
"mainEntityOfPage": "<% story.href %>",
"publisher": {
"@type": "Organization",
"name": "<% site.title %>",
"logo": {
"@type": "ImageObject",
"url": "<% root.href %><% image /ant-icon.png url %>"
}
}
}
</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>
<script async src="https://cdn.ampproject.org/v0.js"></script>
</head>
<body>
<h1><% param.title %></h1>
<% param.text %>
</body>
</html>

View file

@ -335,18 +335,6 @@ Story.prototype.comment_action = function() {
return;
}
Story.prototype.amp_html_action = function() {
var spec = sanitizeHtml.defaults;
var text = this.format_filter(this.text);
text = sanitizeHtml(text, spec);
this.renderSkin('$Story#amp', {
text: text,
title: this.title || formatDate(this.created, 'date')
});
};
/**
*
* @param {String} name