setup
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
---
|
||||
title: 'List Layout'
|
||||
bookcase_cover_src: 'cover/list.png'
|
||||
bookcase_cover_src_dark: 'cover/list_dark.png'
|
||||
type: "bookcase"
|
||||
---
|
||||
|
||||
List layout is the built-in section layout. Monochrome add options to adjust its behavior.
|
||||
@@ -0,0 +1,14 @@
|
||||
---
|
||||
title: 'List Layout Demo'
|
||||
bookcase_cover_src: 'cover/list.png'
|
||||
bookcase_cover_src_dark: 'cover/list_dark.png'
|
||||
weight: 40
|
||||
---
|
||||
|
||||
```
|
||||
.
|
||||
├── _index.md <- you're here!
|
||||
├── post1.md
|
||||
├── post2.md
|
||||
└── post3.md
|
||||
```
|
||||
@@ -0,0 +1,7 @@
|
||||
---
|
||||
title: 'post1'
|
||||
date: 2021-02-06
|
||||
search_hidden: true
|
||||
---
|
||||
|
||||
Hello world!
|
||||
@@ -0,0 +1,7 @@
|
||||
---
|
||||
title: 'post2'
|
||||
date: 2021-02-06
|
||||
search_hidden: true
|
||||
---
|
||||
|
||||
Hello world!
|
||||
@@ -0,0 +1,7 @@
|
||||
---
|
||||
title: 'post3'
|
||||
date: 2021-02-06
|
||||
search_hidden: true
|
||||
---
|
||||
|
||||
Hello world!
|
||||
@@ -0,0 +1,40 @@
|
||||
---
|
||||
title: 'List Layout Document'
|
||||
bookcase_cover_src: 'cover/list.png'
|
||||
bookcase_cover_src_dark: 'cover/list_dark.png'
|
||||
weight: 40
|
||||
changelogs:
|
||||
---
|
||||
|
||||
List layout is the built-in section layout. Monochrome add options to adjust its behavior.
|
||||
|
||||
## Configuration
|
||||
|
||||
### Group by year
|
||||
|
||||
An option to control group setting.
|
||||
|
||||
```yaml
|
||||
group_by_year: false
|
||||
```
|
||||
|
||||
> default: theme's [`list_layout.enable_group_by_year`](/hugo-theme-monochrome/configuration/theme/#group-by-year)
|
||||
|
||||
### Show date
|
||||
|
||||
Show / Hide date right after the post entry.
|
||||
|
||||
```yaml
|
||||
show_date: false
|
||||
```
|
||||
|
||||
> default: theme's [`list_layout.enable_show_date`](/hugo-theme-monochrome/configuration/theme/#show-date)
|
||||
|
||||
### Pagination
|
||||
|
||||
```yaml
|
||||
pagination: false
|
||||
```
|
||||
|
||||
> default: theme's [`list_layout.enable_pagination`](/hugo-theme-monochrome/configuration/theme/#pagination)
|
||||
|
||||
Reference in New Issue
Block a user