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,11 +25,13 @@ 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) } }
|
||||||
span class="published" {
|
div {
|
||||||
strong { "Published: " }
|
span class="published" {
|
||||||
time datetime=(published_at) data-controller="local-time" {
|
strong { "Published: " }
|
||||||
(published_at)
|
time datetime=(published_at) data-controller="local-time" {
|
||||||
|
(published_at)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
(PreEscaped(content))
|
(PreEscaped(content))
|
||||||
|
Loading…
Reference in New Issue
Block a user