diff of b9955596f4e9f6250418ae2023d0fb5b845fd90c
b9955596f4e9f6250418ae2023d0fb5b845fd90c
diff --git a/elm-frontti/src/Article_view.elm b/elm-frontti/src/Article_view.elm
index c596a5c..052d8dd 100644
--- a/elm-frontti/src/Article_view.elm
+++ b/elm-frontti/src/Article_view.elm
@@ -38,14 +38,18 @@ articleView settings loginstate zone the_actual_post =
, article [ class "content"
, dangerouslySetInnerHTML the_actual_post.content] []
- , div [] ( the_actual_post.tags
- |> List.filter ((/=) "")
- |> List.map ( \tag -> span [] [ a [ href ("/blog/tags/" ++ tag)
- , class "tag" ] [text tag]
- , text ", "]))
, div [ class "previously" ]
( the_actual_post.previously
|> List.map (\prev -> span [] [ a [ href ("/blog/post/" ++ (String.fromInt prev.id))
, title prev.title]
[ text settings.previously_label ]
- , text ", "]))]
+ , text ", "]))
+ , let tags = ( the_actual_post.tags
+ |> List.filter ((/=) ""))
+ in
+ if not (List.isEmpty tags) then
+ div [ class "tags" ] ( tags
+ |> List.map ( \tag -> span [] [ a [ href ("/blog/tags/" ++ tag)
+ , class "tag" ] [text tag]
+ , text ", "]))
+ else div [] []]
diff --git a/resources/css/murja.css b/resources/css/murja.css
index a449fc8..deac910 100644
--- a/resources/css/murja.css
+++ b/resources/css/murja.css
@@ -280,6 +280,11 @@ header {
width: 100%;
}
+.tags {
+ background-color: #444;
+ font-size: 1.3em;
+}
+
@media only screen and (max-device-width:480px)
{
body {