diff --git a/js/domRenderer.js b/js/domRenderer.js index 61ef548..3dff886 100644 --- a/js/domRenderer.js +++ b/js/domRenderer.js @@ -72,13 +72,11 @@ function DomRenderer(modules) { return function(articlePreviews) { return [ modules.dom.make('h2', {innerText: pageTitle(tag, all)}), - modules.dom.make('p', {}, [ - modules.dom.make('a', { - class: 'navigation', - innerText: all ? 'See only latest' : 'See all', - href: otherUrl(tag, all) - }) - ]), + modules.dom.make('a', { + class: 'navigation', + innerText: all ? 'See only latest' : 'See all', + href: otherUrl(tag, all) + }), modules.dom.make('div', {class: 'articles'}, articlePreviews.filter(modules.fun.defined)) ]; }; diff --git a/src/Dom.hs b/src/Dom.hs index 10009f4..c39c229 100644 --- a/src/Dom.hs +++ b/src/Dom.hs @@ -40,7 +40,7 @@ instance Page ArticlesList where content al@(ArticlesList {featured}) = do preview <- Article.preview <$> (Blog.get $skin.$previewLinesCount) h2_ . toHtml . pack $ pageTitle al - p_ . navigationA [href_ . pack $ otherUrl al] . toHtml . pack $ otherLink al + navigationA [href_ . pack $ otherUrl al] . toHtml . pack $ otherLink al div_ [class_ "articles"] ( mapM_ (article False . preview) featured )