fixed date
authorJean-Philippe Orsini <jeanfi@gmail.com>
Mon, 4 Jul 2016 09:05:12 +0000 (11:05 +0200)
committerJean-Philippe Orsini <jeanfi@gmail.com>
Mon, 4 Jul 2016 09:05:12 +0000 (11:05 +0200)
src/main/java/net/wpitchoune/asciidoctor/Main.java

index 355008c..adbb92d 100644 (file)
@@ -104,16 +104,11 @@ public class Main {
                sb.append("</html>");           
         }
         
-        private static void appendHTMLContentHeader(StringBuffer sb, String title, String date) {
+        private static void appendHTMLContentHeader(StringBuffer sb, String title) {
                sb.append("<div id='header'>\n");
                sb.append("<h1>");
                sb.append(title);
                sb.append("</h1>\n");
-               if (date != null) {
-                       sb.append("<div class='date'>");
-                       sb.append(date);
-                       sb.append("</div>");
-               }
                sb.append("</div>");
         }               
         
@@ -130,9 +125,14 @@ public class Main {
                
                buf.append("<body>\n");
                
-               appendHTMLContentHeader(buf, title, date);
+               appendHTMLContentHeader(buf, title);
                
                buf.append("<div id='content'>\n");
+               if (date != null) {
+                       buf.append("<div class='date'>");
+                       buf.append(date);
+                       buf.append("</div>");
+               }
                buf.append(content);
                buf.append("</div>");
                
@@ -174,7 +174,7 @@ public class Main {
                
                news.append("<body>\n");
                
-               appendHTMLContentHeader(news, cfg.getFeedTitle(), null);
+               appendHTMLContentHeader(news, cfg.getFeedTitle());
                
                news.append("<div id='content'>\n");
                
@@ -213,9 +213,6 @@ public class Main {
                        news.append("<h2>");
                        news.append(itemTitle);
                        news.append("</h2>");
-                       news.append("<div class='date'>");
-                       news.append(itemDate);
-                       news.append("</div>");
                        news.append(desc.toString());
                        news.append("</div>\n");