Edit website structure
This commit is contained in:
parent
2b79d762b3
commit
5921d2fafe
19 changed files with 104 additions and 110 deletions
|
@ -1,16 +0,0 @@
|
|||
<?php
|
||||
|
||||
return function ($page) {
|
||||
|
||||
// Get exhibitions field content (stored as yaml) and parse it to return an array
|
||||
$exhibitions = $page->exhibitions()->yaml();
|
||||
|
||||
// Add url based title to each exhibition
|
||||
foreach ($exhibitions as &$exhibition) {
|
||||
$exhibition['title'] = str_replace(['http://', 'https://', 'www.'], '', $exhibition['url']);
|
||||
}
|
||||
|
||||
return [
|
||||
'exhibitions' => $exhibitions
|
||||
];
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue