Edit url based exhibition titles
This commit is contained in:
parent
a8b68fb61b
commit
a3cc3e7cdc
2 changed files with 2 additions and 2 deletions
|
@ -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'], '/');
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue