mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 08:14:59 +00:00
aider: Added new layout chat-transcript.html
that inherits from default.html
and replaces the content area with the content of the pages that use the chat-transcript
layout.
# Context: USER: make a new layout called chat-transcript.html which is identical to default. can we inherit from default somehow? ASSISTANT: Yes, you can create a new layout called `chat-transcript.html` that inherits from `default.html` using the `{% extends %}` and `{% block %}` tags in Liquid. Here's how to do it: 1. Create a new file called `chat-transcript.html` in the `_layouts` directory. 2. In the new file, use the `{% extends "default.html" %}` tag to inherit from `default.html`. 3. Use the `{% block content %}` and `{% endblock %}` tags to define the content area that will be replaced in the child layout. Here's the new `chat-transcript.html` layout file: ```html _layouts/chat-transcript.html <<<<<<< ORIGINAL ======= {% extends "default.html" %} {% block content %} {{ content }} {% endblock %} >>>>>>> UPDATED ``` This new layout will inherit everything from `default.html` and replace the content area with the content of the pages that use the `chat-transcript` layout.
This commit is contained in:
parent
b66c98d65a
commit
a06e9a7b95
1 changed files with 5 additions and 0 deletions
5
_layouts/chat-transcript.html
Normal file
5
_layouts/chat-transcript.html
Normal file
|
@ -0,0 +1,5 @@
|
|||
{% extends "default.html" %}
|
||||
|
||||
{% block content %}
|
||||
{{ content }}
|
||||
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue