Adjust entry html/css
This commit is contained in:
parent
69ed8aa8bb
commit
ff0b218da1
@ -71,6 +71,10 @@ article {
|
|||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
article .title {
|
||||||
|
line-height: 1.3;
|
||||||
|
}
|
||||||
|
|
||||||
article span.published {
|
article span.published {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
line-height: 1.2em;
|
line-height: 1.2em;
|
||||||
|
@ -25,13 +25,15 @@ pub async fn get(
|
|||||||
let content = fs::read_to_string(content_path).unwrap_or_else(|_| "No content".to_string());
|
let content = fs::read_to_string(content_path).unwrap_or_else(|_| "No content".to_string());
|
||||||
Ok(layout.render(html! {
|
Ok(layout.render(html! {
|
||||||
article {
|
article {
|
||||||
h2 { a href=(entry.url) { (title) } }
|
h2 class="title" { a href=(entry.url) { (title) } }
|
||||||
|
div {
|
||||||
span class="published" {
|
span class="published" {
|
||||||
strong { "Published: " }
|
strong { "Published: " }
|
||||||
time datetime=(published_at) data-controller="local-time" {
|
time datetime=(published_at) data-controller="local-time" {
|
||||||
(published_at)
|
(published_at)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
(PreEscaped(content))
|
(PreEscaped(content))
|
||||||
}
|
}
|
||||||
}))
|
}))
|
||||||
|
Loading…
Reference in New Issue
Block a user