added uri to the feed item
authorJean-Philippe Orsini <jeanfi@gmail.com>
Mon, 4 Jul 2016 08:04:53 +0000 (10:04 +0200)
committerJean-Philippe Orsini <jeanfi@gmail.com>
Mon, 4 Jul 2016 08:04:53 +0000 (10:04 +0200)
src/main/java/net/wpitchoune/asciidoctor/Main.java

index f68f354..1e09ab0 100644 (file)
@@ -145,7 +145,7 @@ public class Main {
                DocumentHeader h;
                SyndContentImpl c;
                StringBuffer news;
-               String itemTitle, itemContent;
+               String itemTitle, itemContent, itemURI;
                
                inDir = new File(args[0]);
                outDir = new File(args[1]);
@@ -187,7 +187,10 @@ public class Main {
                        
                        e = new SyndEntryImpl();
                        e.setTitle(itemTitle);
-                       e.setUri(cfg.getFeedBaseURL() + "/" + html.getName());
+                       itemURI = cfg.getFeedBaseURL() + "/" + html.getName(); 
+                       e.setUri(itemURI);
+                       e.setLink(itemURI);
+                       
                        
                        c = toSyndContentImpl(itemContent);