ฉันกำลังพยายามทำความเข้าใจวิธีสร้างธีมที่กำหนดเองของ Drupal 8 ฉันมีคำถามเกี่ยวกับเรื่องนั้น และฉันไม่สามารถหาคำตอบที่แท้จริงเกี่ยวกับเอกสารประกอบหรืออย่างอื่นได้ ใครสามารถช่วยฉันหน่อยได้ไหม?
ฉันได้สร้าง libraries.yml และ theme_info.yml พร้อมข้อมูลเหล่านี้:
name: Cosplay Academy
type: theme
description: 'A cuddly theme that offers extra fluffiness.'
core: 8.x
libraries:
- cosplayacademy/global-styling-and-scripts
regions:
header: Header
primary_menu: 'Primary menu'
secondary_menu: 'Secondary menu'
page_top: 'Page top'
page_bottom: 'Page bottom'
highlighted: Highlighted
featured_top: 'Featured top'
breadcrumb: Breadcrumb
content: Content
sidebar_first: 'Sidebar first'
sidebar_second: 'Sidebar second'
featured_bottom_first: 'Featured bottom first'
featured_bottom_second: 'Featured bottom second'
featured_bottom_third: 'Featured bottom third'
footer_first: 'Footer first'
footer_second: 'Footer second'
footer_third: 'Footer third'
footer_fourth: 'Footer fourth'
footer_fifth: 'Footer fifth'
global-styling-and-scripts:
version: VERSION
css:
theme:
css/plugins/bootstrap.min.css: {}
css/style.css: {}
css/skin-modes.css: {}
css/icons.css: {}
css/plugins/horizontal-menu.css: {}
css/colors/color6.css: {}
ฉันเห็นไฟล์ css ของฉันในมาร์กอัป html แต่มีไฟล์ css จำนวนมากก่อนหน้านั้น ทำไม ? ฉันสามารถลบมันออกได้ไหม?
นอกจากนี้ฉันกำลังพยายามแสดงรูปภาพใน data-image-src แต่มันไม่ปรากฏขึ้น :/ เมื่อฉันดูมาร์กอัป html ของฉันและเมื่อฉันคัดลอก URL ของรูปภาพ มันใช้งานได้ ฉันมองเห็นได้ แต่ ฉันไม่เห็นมันในเพจของฉัน... หลงไปหมดแล้ว :/
ดังที่คุณเห็นด้านล่าง ไฟล์ css ของฉันถูกโหลดในตอนท้าย และรูปภาพของฉันไม่ปรากฏ...