Open Custom Blocks
Contents
To enhance the extensibility of the FixIt theme, we provide some custom blocks that you can use in your project to achieve more functionality.
Entry File
The FixIt theme opens a unified custom template entry file layouts/partials/custom.html
, through which you can implement custom blocks or more ideas.
To avoid upgrade conflicts and facilitate the reference of theme components, it’s strongly recommended to copy this file from the theme to your project and override it.
|
|
Custom Blocks
You can implement these blocks through define
.
Block Name | Description | Location |
---|---|---|
custom-head | Head custom block | layouts/_default/baseof.html |
custom-profile | Profile custom block | layouts/partials/home/profile.html |
custom-aside | Sidebar custom block | layouts/posts/single.html |
custom-footer | Footer custom block | layouts/partials/footer.html |
custom-widgets | Widgets custom block | layouts/partials/widgets.html |
custom-assets | Assets custom block | layouts/partials/assets.html |
How to Use
For example, the FixIt theme documentation site customizes the custom-profile
block on the homepage.
First, create a custom template entry file:
|
|
Then, define the custom-profile
block in the custom template:
|
|
Related Content
- Develop Theme Components (TODO)
- Improve Documentation
- Develop FixIt Theme
- Advanced Usage
- Content Management Overview
Included in Collection・References 1