这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -315,10 +315,12 @@ Google Analytics will only appear in production, i.e., `JEKYLL_ENV=production`

### Enabling Excerpts on the Home Page

To display post-excerpts on the Home Page, simply add the following to your `_config.yml`:
To display post-excerpts on the Home Page, simply set `show_excepts` under top-level key `minima` to `true` in your
`_config.yml`:

```yaml
show_excerpts: true
minima:
show_excerpts: true
```


Expand Down
8 changes: 4 additions & 4 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ plugins:
header_pages:
- about.md

# Set to `true` to show excerpts on the homepage.
#show_excerpts: false

# Minima specific settings, which are only available from Minima 3.0 onward.
minima:
# Minima skin selection.
Expand All @@ -45,7 +42,10 @@ minima:
# solarized-dark Dark variant of solarized color scheme.
# solarized Adaptive skin for solarized color scheme skins.
skin: classic


# Set to `true` to show excerpts on the homepage.
#show_excerpts: false

# Minima date format.
# The default value is "%b %d, %Y" (e.g. Nov 14, 2023)
# Refer to https://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 @@ -31,7 +31,7 @@ <h3>
{{ post.title | escape }}
</a>
</h3>
{%- if site.show_excerpts -%}
{%- if site.minima.show_excerpts -%}
{{ post.excerpt }}
{%- endif -%}
</li>
Expand Down