Bookcase layout is useful for creating another viewpoint of list contents.
This layout can only be used on list layout.
Configuration
|
|
Specify
type
in front-matter will change the template lookup order.
bookcase_list_sections
List subsections.
|
|
default: true
bookcase_list_pages
List pages.
|
|
default: true
Resouces Configuration
These parameters are located in bookcase item’s resource. For example:
.
├── books.md <- config is located in here!
├── category
│ └── _index.md <- and here!
└── _index.md <- your bookcase layout
bookcase_cover_src
The cover image URL. URL must be relative to base URL. (without /
prefix)
Image ratio is 2:3 (width:height)
For example:
https://kaiiiz.github.io/hugo-theme-monochrome/thanks.jpg
\_____________________________________/\________/
base URL bookcase_cover_src
|
|
default: fallback to bookcase_cover_src_dark, if failed, image become empty
bookcase_cover_src_dark
The cover image URL for dark mode. URL must be relative to base URL. (without /
prefix)
Image ratio is 2:3 (width:height)
For example:
https://kaiiiz.github.io/hugo-theme-monochrome/thanks.jpg
\_____________________________________/\________/
base URL bookcase_cover_src
|
|
default: fallback to bookcase_cover_src, if failed, image become empty
weight
|
|
default: default order