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:
Paul Gauthier 2023-05-16 06:29:28 -07:00
parent 2a1b2f8163
commit 263988a27c

View file

@ -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 %}