This commit is contained in:
2025-05-13 15:48:54 -07:00
parent b4e2d28290
commit 990006b164

View File

@@ -547,7 +547,10 @@ class Site
// change excerpt langth
if (array_key_exists("excerpt-length", $this->config)) {
add_filter("excerpt-length", fn () => (int) $this->config["excerpt-length"], 999);
add_filter("excerpt_length", fn () => (int) $this->config["excerpt-length"], 999);
}
if (array_key_exists("excerpt_length", $this->config)) {
add_filter("excerpt_length", fn () => (int) $this->config["excerpt_length"], 999);
}
}