mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 08:44:59 +00:00
style: Format description text inline with title links
This commit is contained in:
parent
36f2458f2e
commit
f1e070cc1e
1 changed files with 3 additions and 15 deletions
|
@ -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 %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue