setup
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
---
|
||||
title: 'Recent Posts'
|
||||
---
|
||||
|
||||
# Recent Posts
|
||||
|
||||
Render recent posts list
|
||||
|
||||
## Usage
|
||||
|
||||
```
|
||||
{{</* recent-posts sortby="" limit="" */>}}
|
||||
```
|
||||
|
||||
Paramters:
|
||||
|
||||
* `sortby`: `publishDate` or `lastMod`
|
||||
* `limit`: positive integer, `0` means unlimited
|
||||
|
||||
## Examples
|
||||
|
||||
```html
|
||||
{{</* recent-posts sortby="lastMod" limit=5 */>}}
|
||||
```
|
||||
|
||||
{{< recent-posts sortby="lastMod" limit=5 >}}
|
||||
Reference in New Issue
Block a user