Skip to content

Commit 37a1a5c

Browse files
Merge pull request #30 from CodeWithGroup/feature/further-sitemap
Fixing sitemap issues from initial deployment
2 parents 3ca7133 + da2bb10 commit 37a1a5c

File tree

10 files changed

+27
-28
lines changed

10 files changed

+27
-28
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@ 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)
2424

2525
# Sitemap
26-
The site's sitemap is generated automatically on deployment
26+
All pages not defined as a default in _config.yml are added to the sitemap
2727

28-
To avoid a page being indexed, e.g people pages that are included use the below snippet at the top of the page.
28+
To exclude a specific page use the snippet `sitemap:false` at the top of the page
2929

30-
`sitemap: false`
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

pages-activities/activities-learning.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
---
2-
sitemap: false
3-
---
41
<div class="row">
52
<div class="col-md-12">
63
<a name="activities-learning"></a>

pages-activities/activities-practice.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
---
2-
sitemap: false
3-
---
41
<div class="row">
52
<div class="col-md-12">
63
<a name="activities-practice"></a>

pages-events/events-drop-ins.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
---
2-
sitemap: false
3-
---
41
<h2>Drop-in sessions</h2>
52
<p>
63
Drop-in sessions are hosted by at least one mentor and run regularly in the evenings.

pages-events/events-eventbrite-list.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
---
2-
sitemap: false
3-
---
41
<h2>Scheduled Workshops</h2>
52

63
<section id="events-scheduled">

pages-people/people-drew.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
---
2-
sitemap: false
3-
---
41
<a name="drew-morgan"></a>
52
<div class="row person-blurb">
63
<div class="col-md-4 col-lg-5 col-xl-3">

pages-people/people-keiran.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
---
2-
sitemap: false
3-
---
41
<a name="keiran-wilkinson"></a>
52
<div class="row person-blurb">
63
<div class="col-md-4 col-lg-5 col-xl-3">

pages-resources/resources-ideas.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
---
2-
sitemap: false
3-
---
41
<div class="row">
52
<div class="col-md-12">
63
<a name="resources-ides"></a>

pages-resources/resources-tools.html

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
---
2-
sitemap: false
3-
---
41
<div class="row">
52
<div class="col-md-12">
63
<a name="resources-tools"></a>

0 commit comments

Comments
 (0)