Update jekyll again
This commit is contained in:
parent
c04f664fc2
commit
30a20856d2
35
jekyll.md
35
jekyll.md
|
@ -266,24 +266,49 @@ See: [Image paths](http://jekyllrb.com/docs/posts/#including-images-and-resource
|
||||||
vi _drafts/a-draft-post.md
|
vi _drafts/a-draft-post.md
|
||||||
jekyll build --drafts
|
jekyll build --drafts
|
||||||
|
|
||||||
|
Posts in `_drafts` only show up in development, but not production.
|
||||||
See: [Drafts](http://jekyllrb.com/docs/drafts/)
|
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 | remove: '<p>' | remove: '</p>' }}
|
||||||
{{ post.excerpt | strip_html }}
|
{{ post.excerpt | strip_html }}
|
||||||
|
```
|
||||||
|
|
||||||
### Excerpt separator
|
### Excerpt separator
|
||||||
|
|
||||||
|
```html
|
||||||
---
|
---
|
||||||
excerpt_separator: <!--more-->
|
excerpt_separator: <!--more-->
|
||||||
---
|
---
|
||||||
|
|
||||||
Excerpt
|
Excerpt here
|
||||||
<!--more-->
|
<!--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
|
# _config.yml
|
||||||
permalink: date # /:categories/:year/:month/:day/:title.html
|
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: none # /:categories/:title.html
|
||||||
permalink: "/:title"
|
permalink: "/:title"
|
||||||
|
|
||||||
|
See: [Permalinks](http://jekyllrb.com/docs/permalinks/)
|
||||||
|
|
||||||
## More features
|
## More features
|
||||||
|
|
||||||
### Data
|
### Data
|
||||||
|
|
Loading…
Reference in New Issue