Add author sidebar disabled and custom sidebar content sample posts
This commit is contained in:
parent
4a1ab51ec9
commit
9662a83a5c
2 changed files with 35 additions and 0 deletions
9
_posts/2012-03-15-template-author-sidebar-disabled.md
Normal file
9
_posts/2012-03-15-template-author-sidebar-disabled.md
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
---
|
||||||
|
title: "Template: Author Sidebar Disabled"
|
||||||
|
excerpt: "A post to test disabling author sidebar."
|
||||||
|
author_profile: false
|
||||||
|
---
|
||||||
|
|
||||||
|
This post has the author sidebar disabled.
|
||||||
|
|
||||||
|
To disable add `author_profile: false` to YAML Front Matter.
|
26
_posts/2012-03-15-template-sidebar-custom.md
Normal file
26
_posts/2012-03-15-template-sidebar-custom.md
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
---
|
||||||
|
title: "Template: Sidebar Custom"
|
||||||
|
excerpt: "A post to custom sidebar content."
|
||||||
|
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."
|
||||||
|
---
|
||||||
|
|
||||||
|
This post has a custom sidebar set in the post's YAML Front Matter..
|
||||||
|
|
||||||
|
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."
|
||||||
|
```
|
Loading…
Reference in a new issue