26 :tag("id"):text(entry_id):up(id) |
26 :tag("id"):text(entry_id):up(id) |
27 :tag("title"):text(opts.title or ""):up() |
27 :tag("title"):text(opts.title or ""):up() |
28 :tag("updated"):text(opts.updated or datetime()):up(); |
28 :tag("updated"):text(opts.updated or datetime()):up(); |
29 atom_entry:tag("author"):tag("name"):text(opts.author or os.getenv("USER") or "Unknown author"):up(); |
29 atom_entry:tag("author"):tag("name"):text(opts.author or os.getenv("USER") or "Unknown author"):up(); |
30 atom_entry:up(); |
30 atom_entry:up(); |
|
31 atom_entry:tag("source") |
|
32 :tag("id"):text(opts.node):up() |
|
33 :tag("link", { rel = "self", href = opts.node }):up() |
|
34 :up(); |
31 if opts.summary then |
35 if opts.summary then |
32 atom_entry:tag("summary"):text(opts.summary):up(); |
36 atom_entry:tag("summary"):text(opts.summary):up(); |
33 end |
37 end |
34 |
38 |
35 if opts.content then |
39 if opts.content then |