Skip to content

Commit

Permalink
Convert logic to boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
ashmaroli committed Apr 7, 2017
1 parent 1d3bada commit 8ce9f29
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ Google Analytics will only appear in production, i.e., `JEKYLL_ENV=production`
To display post-excerpts on the Home Page, simply add the following to your `_config.yml`:

```yaml
show_excerpts: enabled
show_excerpts: true
```

## Contributing
Expand Down
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ description: > # this means to ignore newlines until "baseurl:"
twitter_username: jekyllrb
github_username: jekyll
show_excerpts: enabled
show_excerpts: true # or false

# Minima date format
# refer to http://shopify.github.io/liquid/filters/date/ if you want to customize this
Expand Down
2 changes: 1 addition & 1 deletion _layouts/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ <h1 class="page-heading">Posts</h1>
<h2>
<a class="post-link" href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
</h2>
{% if site.show_excerpts == "enabled" %}
{% if site.show_excerpts %}
<hr class="headliner">
{{ post.excerpt }}
<hr class="visually-hidden">
Expand Down

0 comments on commit 8ce9f29

Please sign in to comment.