mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
aider: Update blog index to display post excerpt if available, otherwise use the first 100 words.
# Aider chat conversation: USER: use the excerpt if one exists, otherwise keep using the first 100 words ASSISTANT: ```diff --- blog/index.html +++ blog/index.html @@ ... @@ <div class="entry"> - {{ post.content | strip_html | truncatewords: 100 }}... + {{ post.excerpt | default: post.content | strip_html | truncatewords: 100 }}... </div> ```
This commit is contained in:
parent
a3f9f6c5c6
commit
d7476bb303
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ layout: default
|
|||
<h1><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h1>
|
||||
|
||||
<div class="entry">
|
||||
{{ post.content | strip_html | truncatewords: 100 }}...
|
||||
{{ post.excerpt | default: post.content | strip_html | truncatewords: 100 }}...
|
||||
</div>
|
||||
|
||||
<a href="{{ site.baseurl }}{{ post.url }}" class="read-more">Read More</a>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue