del: support for instant articles

This commit is contained in:
Tobi Schäfer 2020-04-03 11:31:11 +02:00
parent c588441add
commit 7ed88a16b4
2 changed files with 0 additions and 42 deletions

View file

@ -620,18 +620,6 @@ Site.prototype.renderXml = function(collection) {
// FIXME: Work-around for org.jdom.IllegalDataException caused by some ASCII control characters // FIXME: Work-around for org.jdom.IllegalDataException caused by some ASCII control characters
description.setValue(item.format_filter(item.text).replace(/[\x00-\x1f^\x0a^\x0d]/g, String.EMPTY)); description.setValue(item.format_filter(item.text).replace(/[\x00-\x1f^\x0a^\x0d]/g, String.EMPTY));
entry.setDescription(description); entry.setDescription(description);
if (item.constructor === Story) {
var content = new rome.SyndContentImpl();
content.setType('text/html');
content.setValue(item.renderSkinAsString('$Story#instant', {
text: stripTags(description.getValue())
}));
var contents = new java.util.ArrayList();
contents.add(content);
entry.setContents(contents);
}
} }
entries.add(entry); entries.add(entry);

View file

@ -276,33 +276,3 @@ else
}, 1000); }, 1000);
})(); })();
</script> </script>
<% #instant %>
<!doctype html>
<html lang='en' prefix='op: http://media.facebook.com/op#'>
<head>
<meta charset='utf-8'>
<meta property='op:markup_version' content='v1.0'>
<meta property='fb:article_style' content='default'>
<link rel='canonical' href='<% story.href %>'>
</head>
<body>
<article>
<header>
<h1><% story.title default=<% story.created date %> %></h1>
<time class='op-published' datetime='<% story.created iso %>'>
<% story.created long %>
</time>
<time class='op-modified' dateTime='<% story.modified iso %>'>
<% story.modified long %>
</time>
<address><a><% story.creator %></a></address>
<p><% param.text %></p>
</header>
</article>
</body>
</html>