Add content src to atom feed
This commit is contained in:
parent
7a5ef790f3
commit
73de17fc2c
1 changed files with 2 additions and 0 deletions
|
@ -39,6 +39,8 @@ sub post-to-item(BlogMeta:D $meta, Int:D $id, Post:D $post --> XML::Element) {
|
|||
$xml.append: $author;
|
||||
$xml.append:
|
||||
XML::Element.new(:name<link>, :attribs({:href($link), :rel<alternate>}));
|
||||
$xml.append:
|
||||
XML::Element.new(:name<content>, :attribs({:src($link), :type<html>}));
|
||||
$xml.append:
|
||||
XML::Element.new(:name<summary>, :nodes([$desc])) if $desc;
|
||||
if $post.tags {
|
||||
|
|
Loading…
Add table
Reference in a new issue