mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-02-05 16:04:15 +00:00
add comment
This commit is contained in:
parent
58fba8d8f4
commit
f70fde4263
@ -576,7 +576,7 @@ impl Page {
|
|||||||
// Update page meta
|
// Update page meta
|
||||||
meta.borrow_mut().status = Some(Status::Success);
|
meta.borrow_mut().status = Some(Status::Success);
|
||||||
meta.borrow_mut().title = Some(
|
meta.borrow_mut().title = Some(
|
||||||
match url.split('/').last() {
|
match url.split('/').last() { // @TODO may be empty
|
||||||
Some(filename) => gformat!("{filename}"),
|
Some(filename) => gformat!("{filename}"),
|
||||||
None => gformat!("Image")
|
None => gformat!("Image")
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user