# HG changeset patch # User Kim Alvefur # Date 1345220072 -7200 # Node ID a2214d8213948fe1a24735f3d2fa9e8b75020d6f # Parent ea99e6653e1894443aa40b35a507faea2e1b074a clix.publish_atom: Attach a element diff -r ea99e6653e18 -r a2214d821394 clix/publish_atom.lua --- 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