From b3d59539db15132396a532239f9e60aeaca7372c Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Mon, 19 Feb 2024 14:42:34 -0800 Subject: [PATCH] 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 %}
+ {% if post.highlight_image %} +
+ Highlight Image +
+ {% endif %}

{{ post.title }}

{% if post.excerpt %} ``` --- _posts/2023-11-06-benchmarks-speed-1106.md | 1 + blog/index.html | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/_posts/2023-11-06-benchmarks-speed-1106.md b/_posts/2023-11-06-benchmarks-speed-1106.md index 40a99353a..fd9c009f3 100644 --- a/_posts/2023-11-06-benchmarks-speed-1106.md +++ b/_posts/2023-11-06-benchmarks-speed-1106.md @@ -1,6 +1,7 @@ --- 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 --git a/blog/index.html b/blog/index.html index 1842e8fa5..5ef4c214c 100644 --- a/blog/index.html +++ b/blog/index.html @@ -5,6 +5,11 @@ layout: default
{% for post in site.posts %}
+ {% if post.highlight_image %} +
+ Highlight Image +
+ {% endif %}

{{ post.title }}

{% if post.excerpt %}