Edit url based exhibition titles

This commit is contained in:
Paul Nicoué 2022-12-19 15:18:38 +01:00
parent a8b68fb61b
commit a3cc3e7cdc
2 changed files with 2 additions and 2 deletions

File diff suppressed because one or more lines are too long

View file

@ -7,7 +7,7 @@ return function ($site) {
// Add url based title to each exhibition
foreach ($exhibitions as &$exhibition) {
$exhibition['title'] = str_replace(['http://', 'https://', 'www.'], '', $exhibition['url']);
$exhibition['title'] = str_replace(['http://', 'https://', 'www.', '.html'], '', $exhibition['url']);
$exhibition['title'] = rtrim($exhibition['title'], '/');
}