Commit graph

8 commits

Author SHA1 Message Date
Paul Gauthier
08048b4972 layout 2024-02-19 14:49:23 -08:00
Paul Gauthier
b3d59539db aider: Added highlight image to the blog post and displayed it on the blog index if present.
# Aider chat conversation:

USER: use the graph as a highlight image for the blog post. add the highlight image to the blog index if one is present.

ASSISTANT: To use the graph as a highlight image for the blog post and add it to the blog index if a highlight image is present, I will make the following changes:

1. Add a `highlight_image` field to the front matter of the `_posts/2023-11-06-benchmarks-speed-1106.md` file.
2. Modify the `blog/index.html` file to check for the `highlight_image` field and display the image if it exists.

Here are the diffs for those changes:

```diff
--- _posts/2023-11-06-benchmarks-speed-1106.md
+++ _posts/2023-11-06-benchmarks-speed-1106.md
@@ ... @@
 ---
 title: Speed benchmarks of GPT-4 Turbo and gpt-3.5-turbo-1106
 excerpt: This report provides a detailed comparison of the speed of GPT-4 Turbo and gpt-3.5-turbo-1106 models based on the aider benchmarking suite.
+highlight_image: /assets/benchmarks-speed-1106.svg
 redirect_from:
   - /docs/benchmarks-speed-1106.html
 ---
```

```diff
--- blog/index.html
+++ blog/index.html
@@ ... @@
   {% for post in site.posts %}
     <article class="post">
+      {% if post.highlight_image %}
+      <div class="post-highlight">
+        <img src="{{ site.baseurl }}{{ post.highlight_image }}" alt="Highlight Image">
+      </div>
+      {% endif %}
       <h1><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h1>
       <div class="entry">
           {% if post.excerpt %}
```
2024-02-19 14:42:34 -08:00
Paul Gauthier
cc17194cca post->page 2024-02-11 09:42:38 -08:00
Paul Gauthier
f6cb20dd5c added date 2024-02-11 09:27:44 -08:00
Paul Gauthier
ae3373eb89 fixed redirect 2024-02-11 07:57:50 -08:00
Paul Gauthier
e630e51668 better excerpt logic; fixed svg ref 2024-02-11 07:55:44 -08:00
Paul Gauthier
a3f9f6c5c6 aider: Added an excerpt for speed benchmarks report.
# Aider chat conversation:

USER: add an excerpt

ASSISTANT: ```diff
--- _posts/2023-11-06-benchmarks-speed-1106.md
+++ _posts/2023-11-06-benchmarks-speed-1106.md
@@ ... @@
 ---
 title: Speed benchmarks of GPT-4 Turbo and gpt-3.5-turbo-1106
+excerpt: This report provides a detailed comparison of the speed of GPT-4 Turbo and gpt-3.5-turbo-1106 models based on the aider benchmarking suite.
 redirect_from:
   - /docs/benchmarks-speed-1106.md
 ---
```
2024-02-11 07:51:38 -08:00
Paul Gauthier
81ad2f18fe moved benchmarks-speed-1106 article 2024-02-11 07:50:18 -08:00
Renamed from docs/benchmarks-speed-1106.md (Browse further)