diff --git a/view/common/block-layout/list-of-sites.phtml b/view/common/block-layout/list-of-sites.phtml index 1b237b3..f16e61d 100644 --- a/view/common/block-layout/list-of-sites.phtml +++ b/view/common/block-layout/list-of-sites.phtml @@ -19,6 +19,9 @@ foreach($sites as $site){ if (!isset($site_data['currator'])) { $site_data['currator'] = ""; } + if (isset($site_data['project_date'])) { + $site_data['project_date'] = substr($site_data['project_date'], 0, 4); + } array_push($projects, $site_data); } //$collections = json_encode($collections, JSON_UNESCAPED_SLASHES); diff --git a/view/common/site-list-entry.phtml b/view/common/site-list-entry.phtml index 12cdc0f..a8436b6 100644 --- a/view/common/site-list-entry.phtml +++ b/view/common/site-list-entry.phtml @@ -22,7 +22,7 @@ $summary = $showSummary ? $site->summary() : null;