aider/blog/index.html
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

22 lines
501 B
HTML

---
layout: default
---
<div class="posts">
{% for post in site.posts %}
<article class="post">
<p class="post-date">{{ post.date | date: "%b %-d, %Y" }}</p>
<div class="entry">
{% 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>
</article>
{% endfor %}
</div>