Docs about disabling excerpts.
This commit is contained in:
parent
cb8bc5accc
commit
a73b17d08c
|
@ -133,7 +133,8 @@ posts:
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
If you don't like the automatically-generated post excerpt, it can be overridden by adding
|
If you don't like the automatically-generated post excerpt, it can be overridden by adding
|
||||||
`excerpt` to your post's YAML front-matter.
|
`excerpt` to your post's YAML front-matter. Completely disable it by setting
|
||||||
|
your `excerpt_separator` to `""`.
|
||||||
|
|
||||||
## Highlighting code snippets
|
## Highlighting code snippets
|
||||||
|
|
||||||
|
|
|
@ -136,6 +136,14 @@ following error:
|
||||||
'{{ "{{" }}' was not properly terminated with regexp: /\}\}/ (Liquid::SyntaxError)
|
'{{ "{{" }}' was not properly terminated with regexp: /\}\}/ (Liquid::SyntaxError)
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
|
### Excerpts
|
||||||
|
|
||||||
|
Since v1.0.0, Jekyll has had automatically-generated post excerpts. Since
|
||||||
|
v1.1.0, Jekyll also passes these excerpts through Liquid, which can cause
|
||||||
|
strange errors where references don't exist or a tag hasn't been closed. If you
|
||||||
|
run into these errors, try setting `excerpt_separator: ""` in your
|
||||||
|
`_config.yml`, or set it to some nonsense string.
|
||||||
|
|
||||||
<div class="note">
|
<div class="note">
|
||||||
<h5>Please report issues you encounter!</h5>
|
<h5>Please report issues you encounter!</h5>
|
||||||
<p>If you come across a bug, please <a href="https://github.com/mojombo/jekyll/issues/new">create an issue</a> on GitHub describing the problem and any work-arounds you find so we can document it here for others.</p>
|
<p>If you come across a bug, please <a href="https://github.com/mojombo/jekyll/issues/new">create an issue</a> on GitHub describing the problem and any work-arounds you find so we can document it here for others.</p>
|
||||||
|
|
Loading…
Reference in New Issue