Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
aider: Update title display based on page type.
# Aider chat conversation: USER: in page.html, I want it to show "Freenet: Page Title" if it's on a page but just "Freenet" if it's the homepage ASSISTANT: To achieve the desired behavior, we need to update the `page.html` template to conditionally set the title based on whether it's the homepage or another page. Here are the *SEARCH/REPLACE* blocks: templates/page.html ```python <<<<<<< SEARCH {% block title %}{{ page.title }}{% endblock %} ======= {% block title %} {% if page.title == "Home" %} Freenet {% else %} Freenet: {{ page.title }} {% endif %} {% endblock %} >>>>>>> REPLACE ``` This change ensures that the title will be "Freenet" on the homepage and "Freenet: Page Title" on other pages.
- Loading branch information