ServiceItems are loaded from lisp and converted to slides

This commit is contained in:
Chris Cochrun 2024-12-10 12:07:10 -06:00
parent cb7fa372a9
commit db39eb12b8
9 changed files with 283 additions and 125 deletions

View file

@ -39,7 +39,11 @@ impl From<&Value> for Image {
};
let title = path.clone().map(|p| {
p.to_str().unwrap_or_default().to_string()
let path =
p.to_str().unwrap_or_default().to_string();
let title =
path.rsplit_once("/").unwrap_or_default().1;
title.to_string()
});
Self {
title: title.unwrap_or_default(),