更新时间:2021-07-16 12:41:50
封面
版权信息
Credits
About the Author
Acknowledgments
About the Reviewer
www.PacktPub.com
Preface
Chapter 1. Setting Up Our Development Environment
Installing an AMP (Apache MySQL PHP) stack
A quick tour of MAMP PRO
Installing Drupal 8
Reviewing the new admin interface
Using the project files
Summary
Chapter 2. Theme Administration
What is a theme?
Exploring the Appearance interface
Drupal's core themes
Theme states
Installing and uninstalling themes
Theme settings
Theme-specific settings
Using prebuilt themes
Manually installing a theme
Cleaning up our themes folder
Managing content with blocks
Managing custom blocks
Chapter 3. Dissecting a Theme
Setting up a local development environment
Default themes versus custom themes
Folder structure and naming conventions
Managing configuration in Drupal 8
Reviewing the new info.yml file
The role of templates in Drupal
Creating our first basic theme
Introducing Twig
Template variables
The role of the theme file in Drupal
Chapter 4. Getting Started – Creating Themes
Starter themes
Creating a Bootstrap starter
Creating a Jumbotron
Rethinking our layout
Using Twig templates
Subthemes
Touring Classy
Chapter 5. Prepping Our Project
Walking through the design mockup
Restoring our database snapshot
Creating a custom theme
Chapter 6. Theming Our Homepage
Creating our HTML wrapper
Creating our homepage
Implementing our Header Top region
Implementing our Header region
Implementing our Headline Region
Implementing our Before Content region
Implementing the footer
Chapter 7. Theming Our Interior Page
Reviewing the About Us mockup
Creating our interior page template
Adding our Global Header
Implementing our page title
Implementing our main page structure
Implementing our Team members section
Adding our global footer
Fixing JavaScript errors
Chapter 8. Theming Our Blog Listing Page
Reviewing the Blog Listing mockup
Creating our blog listing
Creating a Post Listing view
Managing our Post Listing block
Implementing our Node template
Creating a theme file
Creating a Categories block
Managing our Categories block
Implementing responsive sidebars
Theming a Block template
Drupal Views and Twig templates
Managing popular versus recent content
Adding the About Us block
Chapter 9. Theming Our Blog Detail Page
Reviewing the Blog detail mockup
Previewing our Blog detail page
Creating a Post Full template
Working with comments
Implementing social sharing capabilities
Chapter 10. Theming Our Contact Page
Reviewing the contact page mockup
Introducing contact forms
Contact page layout