Skip to content

Instantly share code, notes, and snippets.

View andreas-wijaya's full-sized avatar

Andreas Wijaya andreas-wijaya

  • Skyshi Digital Indonesia
  • Yogyakarta
View GitHub Profile
owl-carousel:
css:
theme:
components/owl-carousel/css/owl.carousel.css: {weight: -2}
components/owl-carousel/css/owl.theme.css: {weight: -1}
js:
components/owl-carousel/js/owl.carousel.min.js: {weight: -1}
dependencies:
- core/jquery
function hello_world_theme_suggestions_page_alter(array &$suggestions, array $variables) {
$current_path = \Drupal::service('path.current')->getPath();
$alias = \Drupal::service('path.alias_manager')->getAliasByPath($current_path);
$types = explode('/', $alias);
$type = str_replace('-', '_', $types[1]);
if ($node = \Drupal::routeMatch()->getParameter('node')) {
if(isset($types) && isset($types[2])) {
if($types[2] == 'about-us' || $types[2] == 'tentang-kami') {
$suggestions[] = 'page__about_us';
}
global-styling:
css:
theme:
components/bootstrap/css/bootstrap.min.css: {}
css/style.css: {}
global-js:
js:
js/script.js: {}
js/jquery.popupoverlay.js: {}
name: Hello World Theme
description: Theme for "Hello World".
package: Custom
Type: theme
Version: 8.x.1.0
core: 8.x
libraries:
- hello_world/global-styling
- hello_world/global-js