Software /
code /
clix
Changeset
96:a2214d821394
clix.publish_atom: Attach a <source/> element
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 17 Aug 2012 18:14:32 +0200 |
parents | 95:ea99e6653e18 |
children | 97:83cd777fb294 |
files | clix/publish_atom.lua |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/clix/publish_atom.lua Fri Aug 17 18:14:07 2012 +0200 +++ b/clix/publish_atom.lua Fri Aug 17 18:14:32 2012 +0200 @@ -28,6 +28,10 @@ :tag("updated"):text(opts.updated or datetime()):up(); atom_entry:tag("author"):tag("name"):text(opts.author or os.getenv("USER") or "Unknown author"):up(); atom_entry:up(); + atom_entry:tag("source") + :tag("id"):text(opts.node):up() + :tag("link", { rel = "self", href = opts.node }):up() + :up(); if opts.summary then atom_entry:tag("summary"):text(opts.summary):up(); end