mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 16:25:00 +00:00
aider: Added if statement to always display "aider" and "aider is GPT-4 powered coding in your terminal" on home page.
# Context: USER: add an if statement, so the home page always has <h1>aider</h1> and <h2>aider is GPT-4 powered coding in your terminal</h2> ASSISTANT: ```html _layouts/default.html <<<<<<< ORIGINAL <h1 class="project-name">{{ page.title | default: site.title | default: site.github.repository_name }}</h1> <h2 class="project-tagline">{{ page.description | default: site.description | default: site.github.project_tagline }}</h2> ======= {% if page.url == site.baseurl %} <h1 class="project-name">aider</h1> <h2 class="project-tagline">aider is GPT-4 powered coding in your terminal</h2> {% else %} <h1 class="project-name">{{ page.title | default: site.title | default: site.github.repository_name }}</h1> <h2 class="project-tagline">{{ page.description | default: site.description | default: site.github.project_tagline }}</h2> {% endif %} >>>>>>> UPDATED ```
This commit is contained in:
parent
2a1b2f8163
commit
263988a27c
1 changed files with 5 additions and 0 deletions
|
@ -18,8 +18,13 @@
|
|||
<a id="skip-to-content" href="#content">Skip to the content.</a>
|
||||
|
||||
<header class="page-header" role="banner">
|
||||
{% if page.url == site.baseurl %}
|
||||
<h1 class="project-name">aider</h1>
|
||||
<h2 class="project-tagline">aider is GPT-4 powered coding in your terminal</h2>
|
||||
{% else %}
|
||||
<h1 class="project-name">{{ page.title | default: site.title | default: site.github.repository_name }}</h1>
|
||||
<h2 class="project-tagline">{{ page.description | default: site.description | default: site.github.project_tagline }}</h2>
|
||||
{% endif %}
|
||||
<a href="{{ site.baseurl }}/" class="btn">Home</a>
|
||||
<a href="{{ site.baseurl }}/examples/" class="btn">Examples</a>
|
||||
{% if site.github.is_project_page %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue