Drupal8 模版包含

路径为:your_site.com/themes/theme_name/templates/includes/

{% include '@theme_name/includes/header.html.twig' %}

不推荐以下方式:

{% include directory ~ '/includes/header.html.twig' %}

官方文档:including-part-template

你可能感兴趣的:(drupal8,drupal8_theme)