post_preview with footer

This commit is contained in:
2024-07-09 22:16:55 +02:00
parent 1e75744b7b
commit eed3644356
5 changed files with 54 additions and 8 deletions

View File

@ -12,7 +12,7 @@ pub fn description_filter(body: &String) -> ::askama::Result<String> {
let description = body
.lines()
.filter(|line| line.starts_with("<p"))
.take(3)
.take(2)
.collect::<Vec<&str>>()
.join("\n");
debug!(description);