Skip to content

Commit

Permalink
aider: Update <title> tag in templates/base.html to dynamically r…
Browse files Browse the repository at this point in the history
…eflect the page title from front matter.

# Aider chat conversation:

USER: <title> is still freenet.org on FAQ page

ASSISTANT: To ensure the `<title>` tag dynamically reflects the page title, we need to update the `templates/base.html` file to use the `title` variable from the front matter of each page.

Here are the necessary changes:

templates/base.html
```python
<<<<<<< SEARCH
  <title>{% block title %}freenet.org{% endblock %}</title>
=======
  <title>{% block title %}{{ title }}{% endblock %}</title>
>>>>>>> REPLACE
```

This change will ensure that the `<title>` tag dynamically reflects the title specified in the front matter of each page, including the FAQ page.
  • Loading branch information
sanity committed Jun 12, 2024
1 parent b90657f commit 2cdcd6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<head>
<meta charset="utf-8">
<title>{% block title %}freenet.org{% endblock %}</title>
<title>{% block title %}{{ title }}{% endblock %}</title>
<link rel="stylesheet" href="/css/bulma.min.css" />
<link rel="stylesheet" href="/css/freenetorg.css" />
</head>
Expand Down

0 comments on commit 2cdcd6c

Please sign in to comment.