View title appearing twice does not work for cernpublic theme
Summary
The issue was fixed in a previous issue, however it is not fixed for cernpublic theme.
Steps to reproduce
On CERN Public theme:
- Create a view page
- Title appears twice
Possible fixes
In cernbase.theme the code currently removes only the block from cernclean (CERN Theme). Add a conditional to check if the theme is cernclean or cernpublic.
if ( $view_id && $variables['page']['content']['cernclean_page_title']){
$view = \Drupal\views\Views::getView($view_id);
if( !empty($view->getTitle())){
unset($variables['page']['content']['cernclean_page_title']); // <= change it here
}