style: Format description text inline with title links

This commit is contained in:
Paul Gauthier (aider) 2025-03-21 13:30:39 -07:00
parent 36f2458f2e
commit f1e070cc1e

View file

@ -13,11 +13,7 @@ Aider is AI pair programming in your terminal. This documentation will help you
{% for page in pages_list %} {% for page in pages_list %}
{% if page.title and page.url != "/" and page.parent == nil and page.nav_exclude != true %} {% if page.title and page.url != "/" and page.parent == nil and page.nav_exclude != true %}
<li> <li>
<a href="{{ page.url | absolute_url }}">{{ page.title }}</a> <a href="{{ page.url | absolute_url }}">{{ page.title }}</a>{% if page.description %} <span style="font-size: 0.9em; font-style: italic;">— {{ page.description }}</span>{% endif %}
{% if page.description %}
<br>
<span style="margin-left: 1em; font-size: 0.9em; font-style: italic;">{{ page.description }}</span>
{% endif %}
{% assign children = site.html_pages | where: "parent", page.title | sort: "nav_order" %} {% assign children = site.html_pages | where: "parent", page.title | sort: "nav_order" %}
{% if children.size > 0 %} {% if children.size > 0 %}
@ -25,11 +21,7 @@ Aider is AI pair programming in your terminal. This documentation will help you
{% for child in children %} {% for child in children %}
{% if child.title %} {% if child.title %}
<li> <li>
<a href="{{ child.url | absolute_url }}">{{ child.title }}</a> <a href="{{ child.url | absolute_url }}">{{ child.title }}</a>{% if child.description %} <span style="font-size: 0.9em; font-style: italic;">— {{ child.description }}</span>{% endif %}
{% if child.description %}
<br>
<span style="margin-left: 1em; font-size: 0.9em; font-style: italic;">{{ child.description }}</span>
{% endif %}
{% assign grandchildren = site.html_pages | where: "parent", child.title | sort: "nav_order" %} {% assign grandchildren = site.html_pages | where: "parent", child.title | sort: "nav_order" %}
{% if grandchildren.size > 0 %} {% if grandchildren.size > 0 %}
@ -37,11 +29,7 @@ Aider is AI pair programming in your terminal. This documentation will help you
{% for grandchild in grandchildren %} {% for grandchild in grandchildren %}
{% if grandchild.title %} {% if grandchild.title %}
<li> <li>
<a href="{{ grandchild.url | absolute_url }}">{{ grandchild.title }}</a> <a href="{{ grandchild.url | absolute_url }}">{{ grandchild.title }}</a>{% if grandchild.description %} <span style="font-size: 0.9em; font-style: italic;">— {{ grandchild.description }}</span>{% endif %}
{% if grandchild.description %}
<br>
<span style="margin-left: 1em; font-size: 0.9em; font-style: italic;">{{ grandchild.description }}</span>
{% endif %}
</li> </li>
{% endif %} {% endif %}
{% endfor %} {% endfor %}