别名作为模板名,取代nid

function yourTheme_theme_suggestions_node_alter(array &$suggestions, array $variables) {
  // Add content type suggestions.
  if ($node = \Drupal::request()->attributes->get('node')) {
    if ($path_alias = \Drupal::service('path.alias_manager')->getAliasByPath('/node/' . $node->id())){
      $alias = substr($path_alias, 1);
      array_splice($suggestions, 10, 0, 'node__alias__' . $alias);
    }
  }
}