setup
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
---
|
||||
title: 'Postcard Layout'
|
||||
bookcase_cover_src: 'cover/catalogue.png'
|
||||
bookcase_cover_src_dark: 'cover/catalogue_dark.png'
|
||||
type: "bookcase"
|
||||
---
|
||||
|
||||
Postcard layout shows summary of regular posts, it’s useful for creating home page. Postcard layout paginates page according to your `paginate` config setting.
|
||||
|
||||
> This layout can only be used on section page. (`_index.md`)
|
||||
@@ -0,0 +1,18 @@
|
||||
---
|
||||
title: 'Postcard Layout Demo'
|
||||
bookcase_cover_src: 'cover/catalogue.png'
|
||||
bookcase_cover_src_dark: 'cover/catalogue_dark.png'
|
||||
type: 'postcard'
|
||||
weight: 40
|
||||
---
|
||||
|
||||
```
|
||||
.
|
||||
├── _index.md <- you're here!
|
||||
├── post1.md
|
||||
├── post2.md
|
||||
├── post3.md
|
||||
├── post4.md
|
||||
├── post5.md
|
||||
└── post6.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,7 @@
|
||||
---
|
||||
title: 'post4'
|
||||
date: 2021-02-06
|
||||
search_hidden: true
|
||||
---
|
||||
|
||||
Hello world!
|
||||
@@ -0,0 +1,7 @@
|
||||
---
|
||||
title: 'post5'
|
||||
date: 2021-02-06
|
||||
search_hidden: true
|
||||
---
|
||||
|
||||
Hello world!
|
||||
@@ -0,0 +1,7 @@
|
||||
---
|
||||
title: 'post6'
|
||||
date: 2021-02-06
|
||||
search_hidden: true
|
||||
---
|
||||
|
||||
Hello world!
|
||||
@@ -0,0 +1,21 @@
|
||||
---
|
||||
title: 'Postcard Layout Document'
|
||||
bookcase_cover_src: 'cover/catalogue.png'
|
||||
bookcase_cover_src_dark: 'cover/catalogue_dark.png'
|
||||
weight: 40
|
||||
changelogs:
|
||||
---
|
||||
|
||||
Postcard layout show summary of regular posts, it's useful for creating home page.
|
||||
|
||||
> This layout can only be used on list layout.
|
||||
|
||||
## Configuration
|
||||
|
||||
```yaml
|
||||
---
|
||||
type: 'postcard'
|
||||
---
|
||||
```
|
||||
|
||||
> Specify `type` in front-matter will change the template lookup order.
|
||||
Reference in New Issue
Block a user