armansansd 2 tahun lalu
induk
melakukan
3d20968197

File diff ditekan karena terlalu besar
+ 0 - 0
web/themes/custom/popsu/assets/css/styles.min.css


+ 12 - 0
web/themes/custom/popsu/popsu.theme

@@ -13,7 +13,19 @@ use Drupal\Core\Url;
 // }
 
 function popsu_preprocess_html(&$variables) {
+
   $node = \Drupal::routeMatch()->getParameter('node');
+  // $type = $node->getType();
+ 
+  //
+  $frontpage = \Drupal::service('path.matcher')->isFrontPage();
+  $variables['head_title']['slogan'] = \Drupal::config('system.site')->get('slogan');
+  //var_dump($variables['head_title']);
+  if( $frontpage == true){
+   $variables['head_title'] = $variables['head_title']["name"]." | ".$variables['head_title']['slogan'];
+  }else{
+    $variables['head_title'] = $variables['head_title']["name"];
+  }
   if ($node){
     if($node->hasField('field_programme') && $node->get('field_programme')->getString() != ""){
       $variables['attributes']['class'][] = 'programme-' . $node->get('field_programme')->getString();

+ 2 - 0
web/themes/custom/popsu/sass/pages/partials/_header_footer.scss

@@ -145,6 +145,8 @@
 	column-gap: 10px;
 	&>div[id='']{
 		height: 100%;
+		font-size: 0;
+		
 	}
 	
 	

Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini