Sha256: 48389b6709c7fddc1e3c3c80f96b4552976513c25d7c9726a2e27bb2f4162800
Contents?: true
Size: 1.06 KB
Versions: 1
Compression:
Stored size: 1.06 KB
Contents
feed.entry item, id: "urn:uuid:#{item.guid}", published: item.published_at, url: item.permalink_url do |entry| entry.author do entry.name item.author_name end if item.is_a?(Note) entry.title truncate(item.html(:body).strip_html, length: 80, separator: ' ', omissions: '...'), 'type' => 'html' else entry.title item.title, 'type' => 'html' end if item.is_a?(Article) item.tags.each do |tag| entry.category 'term' => tag.display_name, 'scheme' => tag_url(tag.permalink) end # TODO: Add tests for this item.resources.each do |resource| link_options = { rel: 'enclosure', type: resource.mime, title: item.title, href: this_blog.file_url(resource.upload_url) } # The Atom spec disallows files with size=0 link_options[:length] = resource.size if resource.size > 0 entry.tag! :link, link_options end end content_html = fetch_html_content_for_feeds(item, this_blog) entry.content content_html + item.rss_description, 'type' => 'html' end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
publify_core-9.1.0 | app/views/shared/_atom_item_article.atom.builder |