[TASK] add lang nav
This commit is contained in:
@@ -6,7 +6,8 @@ use maud::{html, Markup, DOCTYPE};
|
||||
pub fn new(content: Markup, lang: Language) -> Markup {
|
||||
html! {
|
||||
(DOCTYPE)
|
||||
head {
|
||||
html lang=(lang) {
|
||||
head {
|
||||
meta charset="utf-8";
|
||||
meta name="viewport" content="width=device-width, initial-scale=1.0";
|
||||
link rel="stylesheet" href="/static/pico.min.css";
|
||||
@@ -39,8 +40,8 @@ pub fn new(content: Markup, lang: Language) -> Markup {
|
||||
}
|
||||
|
||||
li {
|
||||
button id="language_toogle" lang="en" {
|
||||
"DE"
|
||||
button id="lang-toggle" lang=(lang.next_language()) {
|
||||
(lang.next_language())
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -62,5 +63,6 @@ pub fn new(content: Markup, lang: Language) -> Markup {
|
||||
}
|
||||
script src="/static/theme.js" {}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user