hacks-guide-minimal-mistake.../docs/_posts/2012-03-15-layout-sidebar-custom.md

28 lines
628 B
Markdown
Raw Normal View History

2016-09-22 04:13:25 +02:00
---
title: "Layout: Sidebar Custom"
2016-11-17 21:12:18 +01:00
excerpt: "A post with custom sidebar content."
2016-09-22 04:13:25 +02:00
author_profile: false
sidebar:
- title: "Title"
image: http://placehold.it/350x250
image_alt: "image"
text: "Some text here."
- title: "Another Title"
text: "More text here."
nav: sidebar-sample
2016-09-22 04:13:25 +02:00
---
2016-11-17 21:12:18 +01:00
This post has a custom sidebar set in the post's YAML Front Matter.
2016-09-22 04:13:25 +02:00
An example of how that YAML could look is:
```yaml
sidebar:
- title: "Title"
image: http://placehold.it/350x250
image_alt: "image"
text: "Some text here."
- title: "Another Title"
text: "More text here."
2018-12-04 20:22:47 +01:00
nav: sidebar-sample
2016-09-22 04:13:25 +02:00
```