]> gitweb.michael.orlitzky.com - dead/lwn-epub.git/blobdiff - src/LWN/Article.hs
Begin work on the full page code.
[dead/lwn-epub.git] / src / LWN / Article.hs
index 2da17354249edd936b4bc74648b1612ebf7ec2a1..2820d54f93393a94fbd59b6928405c34f9598af1 100644 (file)
@@ -3,12 +3,12 @@ where
 
 import XHTML
 
-data Article = Article { headline  :: String,
+data Article = Article { title     :: String,
                          byline    :: String,
                          body_html :: String }
 
 instance XHTML Article where
-  to_xhtml (Article hl bl b) =
-    "<h1>" ++ hl ++ "</h1>\n\n" ++
-    "<h2>" ++ bl ++ "</h2>\n\n" ++
+  to_xhtml (Article t bl b) =
+    "<h2>" ++ t ++ "</h2>\n\n" ++
+    "<p><em>" ++ bl ++ "</em></p>\n\n" ++
     b