我正在使用这的子主题,我找不到任何帮助。
我目前正在使用布斯沃特的CDN模式。我想把所有东西都放在本地。
以下是我所做的:
mkdir -p web/libraries/bootstrap
cp -R vendor/twbs/bootstrap/dist web/libraries/bootstrapbootstrap_subtheme_front_office.info.yml文件:name: Bootstrap Subtheme Front Office
type: theme
description: 'SASS starter kit for a Bootstrap Barrio SubTheme.'
# version: VERSION
core: 8.x
core_version_requirement: ^8 || ^9
base theme: bootstrap_barrio
libraries:
- bootstrap_subtheme_front_office/bootstrap
- bootstrap_subtheme_front_office/global-styling
libraries-override:
bootstrap_barrio/global-styling: true
bootstrap_barrio/file: true
regions:
navigation_collapsible_first: 'Navigation (Collapsible first)'
navigation_collapsible_left: 'Navigation (Collapsible left)'
navigation: 'Navigation'
navigation_collapsible_right: 'Navigation (Collapsible right)'
navigation_collapsible_second: 'Navigation (Collapsible second)'
breadcrumb: 'Breadcrumb'
header: 'Top Bar'
sidebar_first: 'Primary'
highlighted: 'Highlighted'
help: 'Help'
content: 'Content'
sidebar_second: 'Secondary'
footer: 'Footer'
# Information added by Drupal.org packaging script on 2020-10-11
version: '5.0.2'
project: 'bootstrap_subtheme_front_office'
datestamp: 1602444143我修改了bootstrap_subtheme_front_office.libraries.yml文件:
global-styling:
version: VERSION
js:
js/popper.min.js: {}
js/bootstrap.min.js: {}
js/barrio.js: {}
js/custom.js: {}
js/back-to-top.js: {}
js/copy-to-clipboard.js: {}
css:
component:
css/style.min.css: {}
dependencies:
- core/jquery
- core/drupal
bootstrap:
js:
/libraries/bootstrap/dist/js/bootstrap.bundle.min.js: {}
css:
component:
/libraries/bootstrap/dist/css/bootstrap.min.css: {}
我复制了文件夹中的4个文件
/libraries/bootswatch/dist/flatlyMY问题
如何申报Bootswatch?把文件放哪儿?
发布于 2021-01-25 20:21:44
主题无法读取SCSS文件。你必须把他们转化为CSS。要做到这一点,请按照以下说明进行操作。
css/style.min.css: {}“css/custom.min.css: {}下面添加以下代码https://drupal.stackexchange.com/questions/299669
复制相似问题