aider/_layouts
Paul Gauthier 02fd0dab38 aider: Added condition to display date for blog posts in _layouts/default.html.
# Aider chat conversation:

USER: if the page is a blog post, show the date

ASSISTANT: To show the date if the page is a blog post, we need to modify the `_layouts/default.html` file. We will add a condition to check if the page is a blog post and then display the date accordingly.

Here is the *SEARCH/REPLACE* block:

_layouts/default.html
```html
<<<<<<< SEARCH
      {% endif %}
=======
      {% endif %}
      {% if page.date %}
      <p class="post-date">{{ page.date | date: "%B %d, %Y" }}</p>
      {% endif %}
>>>>>>> REPLACE
```

This will display the date in the format "Month Day, Year" if the `page.date` variable is set, which is typically the case for blog posts.
2024-05-24 07:51:54 -07:00
..
default.html aider: Added condition to display date for blog posts in _layouts/default.html. 2024-05-24 07:51:54 -07:00
redirect.html Add custom redirect.html without robots:noindex 2024-02-16 08:40:29 -08:00