23 meta(charset:="utf-8"), |
23 meta(charset:="utf-8"), |
24 meta(name:="viewport", all.content:="width=device-width, initial-scale=1"), |
24 meta(name:="viewport", all.content:="width=device-width, initial-scale=1"), |
25 link(rel:="stylesheet", href:=bootstrapCss), |
25 link(rel:="stylesheet", href:=bootstrapCss), |
26 link(rel:="stylesheet", href:=fontAwesomeCss), |
26 link(rel:="stylesheet", href:=fontAwesomeCss), |
27 link(rel:="stylesheet", href:=siteCss), |
27 link(rel:="stylesheet", href:=siteCss), |
28 link(rel:="icon", href:="favicon.ico"), |
|
29 tags2.title(st match { |
28 tags2.title(st match { |
30 case ViewArticle(v) => v.title |
29 case ViewArticle(v) => s"${v.title} | ${content.appTitleShort}" |
31 case ViewCategory(v) => v.name |
30 case ViewCategory(v) => v.name |
32 case ViewTag(v) => v.name |
31 case ViewTag(v) => v.name |
33 case Dashboard => "SQWL" |
32 case Dashboard => content.appTitle |
34 case News => "Novinky" |
33 case News => "Novinky" |
35 }) |
34 }) |
36 ), |
35 ), |
37 body(paddingTop:=120, |
36 body(paddingTop:=120, |
38 Navbar(content, st), |
37 Navbar(content, st), |
39 div(role:="main", cls:="container", |
38 div(role:="main", cls:="container", |
40 st match { |
39 st match { |
41 case ViewArticle(article) => div( |
40 case ViewArticle(article) => div( |
42 a(href:=article.pathSegment, article.title), |
41 a(href:=s"/${http.prefix}/${article.pathSegment}", article.title), |
43 raw(article.htmlContent) |
42 raw(article.htmlContent) |
44 ) |
43 ) |
45 case _ => "" |
44 case _ => "" |
46 } |
45 } |
47 ), |
46 ), |