Skip to content

Commit

Permalink
aider: Updated the base.html template to dynamically set the page t…
Browse files Browse the repository at this point in the history
…itle based on the page's title.

# Aider chat conversation:

USER: I added these files to the chat: templates/base.html.

If you need to propose edits to other existing files not already added to the chat, you *MUST* tell the me their full path names and ask me to *add the files to the chat*. End your reply and wait for my approval. You can keep asking if you then decide you need to edit more files.

ASSISTANT: To dynamically generate the blog index page using the Zola templating language, we need to make sure the `base.html` template is correctly set up to include the necessary blocks and structure.

Here is the *SEARCH/REPLACE* block for `templates/base.html`:

templates/base.html
```html
<<<<<<< SEARCH
  <title>{% block title %}{% endblock %}</title>
=======
  <title>{% block title %}Freenet{% if page.title %} - {{ page.title }}{% endif %}{% endblock %}</title>
>>>>>>> REPLACE
```

This change ensures that the title of the page is dynamically set based on the page's title, which is useful for the blog index and other pages.
  • Loading branch information
sanity committed Jun 13, 2024
1 parent 0f01039 commit 9d1d1fd
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 %}{% endblock %}</title>
<title>{% block title %}Freenet{% if page.title %} - {{ page.title }}{% endif %}{% endblock %}</title>
<link rel="stylesheet" href="/css/bulma.min.css" />
<link rel="stylesheet" href="/css/freenetorg.css" />
</head>
Expand Down

0 comments on commit 9d1d1fd

Please sign in to comment.