Skip to content

Commit cd106b2

Browse files
george-gcaodcambc
authored andcommitted
Added another option to remove content
1 parent 3c52aa0 commit cd106b2

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

CUSTOMIZE.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,19 @@ Depending on your specified footer behavior, the sign up form either will appear
156156

157157
## Removing content
158158

159-
Since this template have a lot of content, you may want to delete some of it. Here is a list of the main components that you may want to delete, and how to do it. Don't forget if you delete a page, to update the `nav_order` of the remaining pages.
159+
Since this template have a lot of content, you may want to remove some of it. The easiest way to achieve this and avoid merge conflicts when updating your code (as [pointed by CheariX ](https://github.com/alshedivat/al-folio/pull/2933#issuecomment-2571271117)) is to add the unwanted files to the `excludes` section in your `_config.yml` file instead of actually deleting them, for example:
160+
161+
```yml
162+
excludes:
163+
...
164+
- _news/announcement_*.md
165+
- _pages/blog.md
166+
- _posts/
167+
- _projects/?_project.md
168+
- assets/jupyter/blog.ipynb
169+
```
170+
171+
Here is a list of the main components that you may want to delete, and how to do it. Don't forget if you delete a page to update the `nav_order` of the remaining pages.
160172

161173
### Removing the blog page
162174

0 commit comments

Comments
 (0)