aboutsummaryrefslogtreecommitdiff
blob: a94ad98aa432f8d402096b34f75d25577e4a1079 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?xml version="1.0"?><% require 'loofah' %><% require 'cgi' %>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:planet="http://planet.intertwingly.net/" xmlns:indexing="urn:atom-extension:indexing" indexing:index="no"><access:restriction xmlns:access="http://www.bloglines.com/about/specs/fac-1.0" relationship="deny"/>
<title>Planet Gentoo</title>
<updated><%= site.items.latest.limit(50).first.published.strftime('%FT%T%:z') %></updated>
<generator uri="https://github.com/feedreader">Pluto</generator>
  <author>
    <name>Welcome to &lt;b&gt;Planet Gentoo&lt;/b&gt;, an aggregation of Gentoo-related weblog articles written by Gentoo developers. For a broader range of topics, you might be interested in &lt;a href="https://planet.gentoo.org/universe/"&gt;Gentoo Universe&lt;/a&gt;.</name>
    <email>planet@gentoo.org</email>
  </author>
  <id>https://planet.gentoo.org/universe/atom.xml</id>
  <link href="https://planet.gentoo.org/atom.xml" rel="self" type="application/atom+xml"/>
  <link href="https://planet.gentoo.org/" rel="alternate"/>

<%
  items = site.items.latest.limit(50)
  ItemCursor.new(items).each do |item, new_date, new_feed|
%>
  <entry xml:lang="en-US">
    <id><%= CGI::escapeHTML(item.url) %></id>
    <link href="<%= CGI::escapeHTML(item.url) %>" rel="alternate" type="text/html" />
    <title type="html"><%= CGI::escapeHTML(item.title) %></title>
    <summary type="html">
        <% if item.summary %>
          <%= CGI::escapeHTML(Loofah.fragment(item.summary).scrub!(:prune).to_s) %>
        <% else %>
          -/-
        <% end %>
    </summary>

    <content type="html">

      <% if item.content %>
          <%= CGI::escapeHTML(Loofah.fragment(item.content).scrub!(:prune).to_s) %>
        <% elsif item.summary %>
          <%= CGI::escapeHTML(Loofah.fragment(item.summary).scrub!(:prune).to_s) %>
        <% else %>
          -/-
        <% end %>

    </content>

    <author>
      <name><%= CGI::escapeHTML(item.feed.title) %></name>
    </author>
    <source>
      <id><%= CGI::escapeHTML(item.feed.url) %></id>
      <link href="<%= CGI::escapeHTML(item.url) %>" rel="self" type="application/rss+xml" />
      <link href="<%= CGI::escapeHTML(item.feed.url) %>" rel="alternate" type="text/html" />
      <subtitle></subtitle>
      <title><%= CGI::escapeHTML(item.title) %></title>
      <updated><%= item.published.strftime('%FT%T%:z') %></updated>
    </source>
    <updated><%= item.published.strftime('%FT%T%:z') %></updated>

  </entry>
<% end %>


</feed>