Skip to content

Commit

Permalink
Remove tag/category items from sitemap
Browse files Browse the repository at this point in the history
This should remove the categories and tags, but not the "root"
category/tag pages.
  • Loading branch information
FrederickGeek8 committed Jul 17, 2024
1 parent 6a64614 commit bbc3299
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,14 @@ defaults:
path: "assets/**"
values:
sitemap: false
- scope:
path: "blog/categories/*"
values:
sitemap: false
- scope:
path: "blog/tags/*"
values:
sitemap: false

feed:
excerpt_only: true
Expand Down
1 change: 1 addition & 0 deletions blog/categories/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
layout: blog.default
sitemap: true
---

{% include ext-navigation.html %}
Expand Down
1 change: 1 addition & 0 deletions blog/tags/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
layout: blog.default
sitemap: true
---

{% include ext-navigation.html %}
Expand Down

0 comments on commit bbc3299

Please sign in to comment.