Sha256: f446149cd11fb46b01d8dee3da954911376548fd0bf13e36d440e749680bfee0

Contents?: true

Size: 1.26 KB

Versions: 2

Compression:

Stored size: 1.26 KB

Contents

---
title: A New Atom Feed
subtitle: A really swell blog built with Webby
site: fake-n-site.org
author: Author's Name
email: author@fake-n-site.org
extension: xml
layout: nil
dirty: true
filter:
- erb
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
 
  <title><%%= h(@page.title) %></title>
  <subtitle><%%= h(@page.subtitle) %></subtitle>
  <link href="http://<%%= @page.site %>/<%= directory %>/" rel="self" />
  <link href="http://<%%= @page.site %>/" />
  <updated><%%= Time.now.xmlschema %></updated>
  <author>
    <name><%%= h(@page.author) %></name>
    <email><%%= h(@page.email) %></email>
  </author>
  <id>http://<%%= @page.site %>/</id>
  <%% @pages.find(:limit => 10,
                 :in_directory => 'blog',
                 :recursive => true,
                 :sort_by => 'mtime',
                 :reverse => true).each do |article|
    next if article == @page
  %>
  <entry>
    <title><%%= h(article.title) %></title>
    <link href="<%%= article.url %>" />
    <id>tag:<%%= @page.site %>,<%%= article.created_at.strftime('%Y-%m-%d') %>:<%%= article.created_at.to_i %></id>
    <updated><%%= article.created_at.xmlschema %></updated>
    <content type="html"><%%= h(article.render) %></content>
  </entry>
  <%% end %>
</feed>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
webby-0.8.3 data/templates/atom_feed.erb
webby-0.8.4 data/templates/atom_feed.erb