mirror of
https://github.com/Aider-AI/aider
synced 2026-05-12 01:46:52 +02:00
aider: Added a scope to set a custom description for the home page in _config.yml.
# Context:
USER: how do i add a scope that sets the description just for the home page?
ASSISTANT: To add a scope that sets the description just for the home page, you'll need to modify the `_config.yml` file. You can define a new scope with a specific path pointing to the home page (usually `index.md` or `index.html`).
Here's how to add a scope with a custom description for the home page:
```yaml
_config.yml
<<<<<<< ORIGINAL
theme: jekyll-theme-cayman
defaults:
- scope:
path: "examples"
type: "pages"
values:
description: "This is a custom description for the examples section."
=======
theme: jekyll-theme-cayman
defaults:
- scope:
path: "examples"
type: "pages"
values:
description: "This is a custom description for the examples section."
- scope:
path: "index.md" # or "index.html" if your home page is an HTML file
type: "pages"
values:
description: "This is a custom description for the home page."
>>>>>>> UPDATED
```
This will apply the custom description to the home page. Make sure to replace `"index.md"` with `"index.html"` if your home page is an HTML file.
This commit is contained in:
@@ -6,3 +6,8 @@ defaults:
|
||||
type: "pages"
|
||||
values:
|
||||
description: "This is a custom description for the examples section."
|
||||
- scope:
|
||||
path: "index.md" # or "index.html" if your home page is an HTML file
|
||||
type: "pages"
|
||||
values:
|
||||
description: "This is a custom description for the home page."
|
||||
|
||||
Reference in New Issue
Block a user