Adjust entry html/css

This commit is contained in:
Tyler Hallada 2023-08-29 23:36:05 -04:00
parent 69ed8aa8bb
commit ff0b218da1
2 changed files with 11 additions and 5 deletions

View File

@ -71,6 +71,10 @@ article {
font-size: 18px;
}
article .title {
line-height: 1.3;
}
article span.published {
font-size: 16px;
line-height: 1.2em;

View File

@ -25,13 +25,15 @@ pub async fn get(
let content = fs::read_to_string(content_path).unwrap_or_else(|_| "No content".to_string());
Ok(layout.render(html! {
article {
h2 { a href=(entry.url) { (title) } }
h2 class="title" { a href=(entry.url) { (title) } }
div {
span class="published" {
strong { "Published: " }
time datetime=(published_at) data-controller="local-time" {
(published_at)
}
}
}
(PreEscaped(content))
}
}))