better excerpt logic; fixed svg ref

This commit is contained in:
Paul Gauthier 2024-02-11 07:55:44 -08:00
parent d7476bb303
commit e630e51668
2 changed files with 6 additions and 2 deletions

View file

@ -6,7 +6,7 @@ redirect_from:
---
# Speed benchmarks of GPT-4 Turbo and gpt-3.5-turbo-1106
[![benchmark results](../assets/benchmarks-speed-1106.svg)](https://aider.chat/assets/benchmarks-speed-1106.svg)
[![benchmark results](/assets/benchmarks-speed-1106.svg)](https://aider.chat/assets/benchmarks-speed-1106.svg)
[OpenAI just released new versions of GPT-3.5 and GPT-4](https://openai.com/blog/new-models-and-developer-products-announced-at-devday),
and there's a lot

View file

@ -9,7 +9,11 @@ layout: default
<h1><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h1>
<div class="entry">
{{ post.excerpt | default: post.content | strip_html | truncatewords: 100 }}...
{% if post.excerpt %}
{{ post.excerpt }}
{% else %}
{{ post.content | strip_html | truncatewords: 100 }}...
{% endif %}
</div>
<a href="{{ site.baseurl }}{{ post.url }}" class="read-more">Read More</a>