I’m trying to add the following entries to my blog’s atom feed:
<webfeeds:cover image="path/to/image.jpg" />
<webfeeds:icon>path/to/image.png</webfeeds:icon>
<webfeeds:logo>path/to/logo-30px-height.svg</webfeeds:logo>
<webfeeds:accentColor>67a43e</webfeeds:accentColor>
<webfeeds:related layout="card" target="browser"/>
I’m using the Builder format to add the entries in this format:
xml.webfeeds:icon "path/to/image.png"
but I’m getting the following SyntaxError:
SyntaxError at /feed.xml
/Users/josh/Sites/site/source/feed.xml.builder:12: syntax error, unexpected tSTRING_BEG, expecting end xml.webfeeds:cover “image” => "https://site… ^ /Users/josh/Sites/site/source/feed.xml.builder:12: syntax error, unexpected =>, expecting end xml.webfeeds:cover “image” => "https://site.com/ima… ^~ /Users/josh/Sites/site/source/feed.xml.builder:29: syntax error, unexpected end, expecting end-of-input end;end;end;end ^~~
Any idea how to format the entries so Builder can generate the XML successfully?