Skip to content

Commit 67546e5

Browse files
Merge branch 'release' into feature/404-page
2 parents f3ba037 + 33f7414 commit 67546e5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+6016
-28
lines changed

README.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,22 @@ 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.
3131
32+
## Example default to add to `_config.yml`
33+
```yml
34+
-
35+
scope:
36+
path: 'pages-people/*'
37+
values:
38+
sitemap: false
39+
```
40+
41+
All files in `_include` are excluded from the sitemap automatically
3242
# Adding a page to the typed suffix functionality
3343
* Add a variable to the suffix-lists.js file with the first word of the page title. Assign the array you want to use to the variable.
3444

_config.yml

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,31 @@
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
26+
27+
-
28+
scope:
29+
path: 'test_next_release/*'
30+
values:
31+
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)