Skip to content

Commit

Permalink
aider: Improve the formatting of the blog index using Bulma classes.
Browse files Browse the repository at this point in the history
# Aider chat conversation:

USER: ok, now can you improve the formatting of the blog index using bulma classes?

ASSISTANT: To improve the formatting of the blog index using Bulma classes, we can add appropriate classes to the HTML elements in the `templates/blog_index.html` file.

Here is the *SEARCH/REPLACE* block for `templates/blog_index.html`:

templates/blog_index.html
```html
<<<<<<< SEARCH
<h1>{{ page.title }}</h1>

<ul>
{% for section in sections %}
    {% for page in section.pages %}
    <li>
        <a href="{{ page.permalink }}">{{ page.title }}</a><br>
        {{ page.date | date(format="long") }}
    </li>
    {% endfor %}
{% endfor %}
</ul>
=======
<div class="container">
    <h1 class="title">{{ page.title }}</h1>

    <div class="content">
        <ul>
        {% for section in sections %}
            {% for page in section.pages %}
            <li>
                <a class="has-text-link" href="{{ page.permalink }}">{{ page.title }}</a><br>
                <small class="has-text-grey">{{ page.date | date(format="long") }}</small>
            </li>
            {% endfor %}
        {% endfor %}
        </ul>
    </div>
</div>
>>>>>>> REPLACE
```

This change will apply Bulma classes to the blog index, improving its formatting and making it more visually appealing.
  • Loading branch information
sanity committed Jun 13, 2024
1 parent 9d1d1fd commit 82067f1
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions templates/blog_index.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
{% extends "base.html" %}

{% block content %}
<h1>{{ page.title }}</h1>
<div class="container">
<h1 class="title">{{ page.title }}</h1>

<ul>
{% for section in sections %}
{% for page in section.pages %}
<li>
<a href="{{ page.permalink }}">{{ page.title }}</a><br>
{{ page.date | date(format="long") }}
</li>
{% endfor %}
{% endfor %}
</ul>
<div class="content">
<ul>
{% for section in sections %}
{% for page in section.pages %}
<li>
<a class="has-text-link" href="{{ page.permalink }}">{{ page.title }}</a><br>
<small class="has-text-grey">{{ page.date | date(format="long") }}</small>
</li>
{% endfor %}
{% endfor %}
</ul>
</div>
</div>
{% endblock content %}

0 comments on commit 82067f1

Please sign in to comment.