Skip to content

Commit 8202d13

Browse files
committed
Documentation
1 parent b1b401d commit 8202d13

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

Diff for: docs/setup/setting-up-a-blog.md

+15-5
Original file line numberDiff line numberDiff line change
@@ -324,11 +324,21 @@ The following configuration options are available for posts:
324324
multiple categories, the [built-in blog plugin] can be instructed to only
325325
show the first `n` categories to keep it short and concise:
326326

327-
``` yaml
328-
plugins:
329-
- blog:
330-
post_excerpt_max_categories: 5
331-
```
327+
=== "Render up to 2 categories in excerpts"
328+
329+
``` yaml
330+
plugins:
331+
- blog:
332+
post_excerpt_max_categories: 2
333+
```
334+
335+
=== "Disable categories in excerpts"
336+
337+
``` yaml
338+
plugins:
339+
- blog:
340+
post_excerpt_max_categories: 0
341+
```
332342

333343
[`post_excerpt_separator`](#+blog.post_excerpt_separator){ #+blog.post_excerpt_separator }
334344

0 commit comments

Comments
 (0)