aboutsummaryrefslogtreecommitdiff
path: root/page/atom.go
diff options
context:
space:
mode:
Diffstat (limited to 'page/atom.go')
-rw-r--r--page/atom.go31
1 files changed, 31 insertions, 0 deletions
diff --git a/page/atom.go b/page/atom.go
new file mode 100644
index 0000000..4a89117
--- /dev/null
+++ b/page/atom.go
@@ -0,0 +1,31 @@
+package page
+
+/*
+
+import (
+ "github.com/gorilla/feeds"
+ "io"
+)
+
+// Atom returns an Atom feed for all of the articles with the specified tag
+func (p *Page) Atom(wr io.Writer, tag string) error {
+ index, err := p.Index()
+ if err != nil {
+ return err
+ }
+
+ pages, ok := index[tag]
+ if !ok {
+ pages = PageList{}
+ }
+
+ feed := &feeds.Feed{
+ Title: "",
+ Link: &feeds.Link{Href: "http://jmoiron.net/blog"},
+ Description: "discussion about tech, footie, photos",
+ Author: &feeds.Author{Name: "Jason Moiron", Email: "jmoiron@jmoiron.net"},
+ Created: now,
+ }
+
+}
+*/