Update jekyll again

This commit is contained in:
Rico Sta. Cruz 2017-08-27 14:38:58 +08:00
parent c04f664fc2
commit 30a20856d2
No known key found for this signature in database
GPG Key ID: CAAD38AE2962619A
1 changed files with 37 additions and 10 deletions

View File

@ -266,24 +266,49 @@ See: [Image paths](http://jekyllrb.com/docs/posts/#including-images-and-resource
vi _drafts/a-draft-post.md
jekyll build --drafts
Posts in `_drafts` only show up in development, but not production.
See: [Drafts](http://jekyllrb.com/docs/drafts/)
### [Excerpts](http://jekyllrb.com/docs/posts/#post-excerpts)
### Defining excerpts
```
---
title: My blog post
excerpt: This post is about cats
---
Hello, let's talk about cats. (···)
```
Put a key `excerpt` in the frontmatter.
See: [Excerpts](http://jekyllrb.com/docs/posts/#post-excerpts)
### Displaying excerpts
```html
{{ post.excerpt }}
```
```html
{{ post.excerpt | remove: '<p>' | remove: '</p>' }}
{{ post.excerpt | strip_html }}
```
### Excerpt separator
```html
---
excerpt_separator: <!--more-->
---
Excerpt
Excerpt here
<!--more-->
Out-of-excerpt
More post body here
```
### [Permalinks](http://jekyllrb.com/docs/permalinks/)
Alternatively, you can put excerpts inline in your post by defining `excerpt_separator`.
### Permalinks
# _config.yml
permalink: date # /:categories/:year/:month/:day/:title.html
@ -291,6 +316,8 @@ See: [Drafts](http://jekyllrb.com/docs/drafts/)
permalink: none # /:categories/:title.html
permalink: "/:title"
See: [Permalinks](http://jekyllrb.com/docs/permalinks/)
## More features
### Data