Commit graph

9 commits

Author SHA1 Message Date
Paul Gauthier
b52718d6eb cleanup 2024-02-11 08:11:48 -08:00
Paul Gauthier
97f0805c8d copy 2024-02-11 08:09:40 -08:00
Paul Gauthier
c37eaebc48 restore h1 2024-02-11 08:07:12 -08:00
Paul Gauthier
1498dc8c9d aider: Put the date under the post title.
# Aider chat conversation:

USER: put the date under the post title

ASSISTANT: ```diff
--- blog/index.html
+++ blog/index.html
@@ ... @@
 <div class="posts">
   {% for post in site.posts %}
     <article class="post">
-      <p class="post-date">{{ post.date | date: "%b %-d, %Y" }}</p>
       <h1><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h1>
+      <p class="post-date">{{ post.date | date: "%b %-d, %Y" }}</p>
       <div class="entry">
```
2024-02-11 08:04:31 -08:00
Paul Gauthier
65d43dff0f aider: Add a date to each blog entry.
# Aider chat conversation:

USER: add a date to each blog entry

ASSISTANT: ```diff
--- blog/index.html
+++ blog/index.html
@@ ... @@
 <div class="posts">
   {% for post in site.posts %}
     <article class="post">
+      <p class="post-date">{{ post.date | date: "%b %-d, %Y" }}</p>
       <h1><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h1>
       <div class="entry">
           {% if post.excerpt %}
```
2024-02-11 08:02:11 -08:00
Paul Gauthier
e630e51668 better excerpt logic; fixed svg ref 2024-02-11 07:55:44 -08:00
Paul Gauthier
d7476bb303 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>
```
2024-02-11 07:52:29 -08:00
Paul Gauthier
ac22c314d1 use first 100 words for excerpt 2024-02-11 06:16:21 -08:00
Paul Gauthier
3fb698cdca added blog 2024-02-11 06:07:29 -08:00