Skip to content

Commit 8ed1e77

Browse files
Merge branch 'release'
2 parents d66f8c4 + 37a1a5c commit 8ed1e77

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,12 @@ If you need any help, contact one of the pople who have already added themselves
2121

2222
Copy the includes code `<br />
2323
{% include_relative pages-people/people-yourname.html %}` to the bottom of people.html (ensure you update the file name)
24+
25+
# Sitemap
26+
All pages not defined as a default in _config.yml are added to the sitemap
27+
28+
To exclude a specific page use the snippet `sitemap:false` at the top of the page
29+
30+
> :warning: **If you are including the page in another page (using `include_relative`)**: add the page as a default in `_config.yml` otherwise the `sitemap:false` is displayed as HTML on the page.
31+
32+
All files in `_include` are excluded from the sitemap automatically

_config.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,25 @@
11
name: CodeWith
22
url: "https://codewith.org.uk" # the base hostname & protocol for your site
33
plugins:
4-
- jekyll-sitemap
4+
- jekyll-sitemap
5+
defaults:
6+
-
7+
scope:
8+
path: 'pages-people/'
9+
values:
10+
sitemap: false
11+
-
12+
scope:
13+
path: 'pages-activities/'
14+
values:
15+
sitemap: false
16+
-
17+
scope:
18+
path: 'pages-resources/'
19+
values:
20+
sitemap: false
21+
-
22+
scope:
23+
path: 'pages-events/'
24+
values:
25+
sitemap: false

0 commit comments

Comments
 (0)