diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2023-10-11 10:31:33 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2023-10-11 10:31:33 -0400 |
commit | ffcc44d1a73ae1191e835fa625f2f8a7e3e25bda (patch) | |
tree | 55e9825d4e7d59cdad345d85ac4adf60607568b9 /app/views/blogs/index.atom.builder | |
parent | 1622895cd467f59f25fe375f081aa59693ae4c8f (diff) | |
download | thoughts-ffcc44d1a73ae1191e835fa625f2f8a7e3e25bda.tar.gz thoughts-ffcc44d1a73ae1191e835fa625f2f8a7e3e25bda.tar.bz2 thoughts-ffcc44d1a73ae1191e835fa625f2f8a7e3e25bda.zip |
Blogs list is now main page (with pagination)
Diffstat (limited to 'app/views/blogs/index.atom.builder')
-rw-r--r-- | app/views/blogs/index.atom.builder | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/app/views/blogs/index.atom.builder b/app/views/blogs/index.atom.builder new file mode 100644 index 0000000..dd498c8 --- /dev/null +++ b/app/views/blogs/index.atom.builder | |||
@@ -0,0 +1,15 @@ | |||
1 | atom_feed do |feed| | ||
2 | feed.title("Four Island") | ||
3 | feed.updated(@blogs[0].published_at) if @blogs.length > 0 | ||
4 | |||
5 | @blogs.each do |blog| | ||
6 | feed.entry(blog) do |entry| | ||
7 | entry.title(blog.title) | ||
8 | entry.content(blog.body, type: 'html') | ||
9 | |||
10 | entry.author do |author| | ||
11 | author.name("hatkirby") | ||
12 | end | ||
13 | end | ||
14 | end | ||
15 | end | ||