登录  /  注册
博主信息
博文 7
粉丝 0
评论 0
访问量 7542
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
Drupal8主题开发——info.yml配置项说明
沅有芷兮澧有兰
原创
1044人浏览过

自定义主题xxx.info.yml的定义配置项:

#  (required)The human-readable name.
# (必须)一个可读的名称
#  This will appear on the "Appearance" page where the theme is activated.
# 当主题激活时会展示在‘外观’页面。
name: xxxxx

# (required)Indicates the type of extension, i.e., "module", "theme", or "profile".
# (必须)显示扩展的类型,如:"module"、"theme"、"profile"
# For themes this should always be set to "theme". This value is case-sensitive.
# 对于主题来说,这里必须保持为 "theme"。这个值是区分大小写的。
type: theme

# (optional)The description, displayed on the "Appearance" page.
description: 'HTML5, SASS, Responsive grid starter theme.'

# (optional)Specifies a "package" that allows you to group themes together.
# (可选)指定允许将主题分组在一起的“package”
package: Core

# (required)Specifies the version of Drupal core that the theme is compatible with.
# (必须)指定主题与之兼容的Drupal核心版本。
core: '8.x'

#  (optional)The minimum version of PHP required. Defaults to the value of DRUPAL_MINIMUM_PHP constant.
# php: 7.1.9

#  (optional)Specifies a version. For themes hosted on drupal.org,
# the version number will be filled in by the packaging script.
# Do not specify it manually, but leave out the version line entirely.
version: '8.x-1.3'

# (optional)A list of libraries (which can contain both CSS and JavaScript assets) to add to all pages where the theme is active.
# see https://www.drupal.org/node/2216195
libraries:
  - core/normalize
  - xxxxx/global

#  (optional)A collection of libraries and assets to override.
# see https://www.drupal.org/node/2216195#override-extend
# libraries-override:

# (optional)A collection of libraries and assets to add whenever a library is attached.
# see https://www.drupal.org/node/2216195#override-extend
# libraries-extend:

# (recommended)A theme can inherit the resources from another theme by specifying it as a base theme.
# It is recommended to use classy or stable (stable is the default if the key is not supplied)
#  – this makes it easier for your theme to inherit future changes in core theming.
# base theme: classy

# (optional)Indicates whether or not to hide the theme from the "Appearance" page so that it cannot be enabled/disabled via the UI.
# hidden: true

# The theme engine. Defaults to "twig".
# engine: twig

# (optional)The path to logo relative to the theme's .info.yml file.
# By default, Drupal will look for a file named "logo.svg" in the root of your theme folder and use that as the theme's logo.
# logo: images/logo.png

# (optional)The path to screenshot relative to the theme's .info.yml file.
# Screenshots should be 588 pixels wide and 438 pixels high, though they are displayed at a smaller size.
# By default, Drupal will look for a file named "screenshot.png" in the root of your theme folder and use that as the theme image on the "Appearance" page.
# screenshot: fluffiness.png

# (optional)A list of theme regions. (Note that region keys are not preceded by a dash.)
# A content region is required.
# see https://www.drupal.org/node/2469113
regions:
  header: 'Header'
  help: Help
  page_top: 'Page top'
  page_bottom: 'Page bottom'
  highlighted: Highlighted
  content: Content
  sidebar_first: 'Sidebar first'
  sidebar_second: 'Sidebar second'
  footer: 'Footer'

# (optional)A list of inherited regions to remove.
# regions_hidden:

# (optional)A list of features to expose on the theme "Settings" page.
# features:

# (deprecated)A list of stylesheets from other modules or themes to remove from all pages where the theme is active.
# Each value must be a full path relative to the docroot to resolve ambiguity when more than one file with the same name exists.
# In cases where the file is part of a library that belongs to a module or theme, a token in the form @module_or_theme_name can be used in place of the full path.
# Note that when using the token the value must be quoted because "@" is a reserved indicator in YAML.
# Note: This key is deprecated and will be removed in Drupal 9. In most cases libraries-override should be used.
# stylesheets-remove:

# (optional)A list of stylesheets to add to the CKEditor frame.
# ckeditor_stylesheets:

# Information added by Drupal.org packaging script on 2017-10-15
project: 'xxxxxxx'
datestamp: 1508096954

本博文版权归博主所有,转载请注明地址!如有侵权、违法,请联系admin@php.cn举报处理!
全部评论 文明上网理性发言,请遵守新闻评论服务协议
0条评论
作者最新博文
关于我们 免责申明 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习
PHP中文网抖音号
发现有趣的

Copyright 2014-2024 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号

  • 登录PHP中文网,和优秀的人一起学习!
    全站2000+教程免费学