From cd93146ed38e7ae37ec65d70abc70bc154d7bb2e Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Tue, 16 May 2023 05:39:59 -0700 Subject: [PATCH] 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. --- _config.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/_config.yml b/_config.yml index 10005d92c..3fa7b525c 100644 --- a/_config.yml +++ b/_config.yml @@ -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."