del: support for instant articles
This commit is contained in:
parent
c588441add
commit
7ed88a16b4
2 changed files with 0 additions and 42 deletions
|
@ -620,18 +620,6 @@ Site.prototype.renderXml = function(collection) {
|
|||
// 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));
|
||||
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);
|
||||
|
|
|
@ -276,33 +276,3 @@ else
|
|||
}, 1000);
|
||||
})();
|
||||
</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>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue