Skip to content

Commit ad5912f

Browse files
authored
Merge pull request #966 from IanWitham/sitemap
Autogenerate sitemap.xml
2 parents d338986 + 06e17f8 commit ad5912f

File tree

4 files changed

+22
-39
lines changed

4 files changed

+22
-39
lines changed

Gemfile

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ gem "minima", "~> 2.0"
2121
group :jekyll_plugins do
2222
gem "jekyll-feed", "~> 0.17"
2323
gem 'jekyll-postcss-v2'
24+
gem "jekyll-sitemap"
2425
end
2526

2627
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem

Gemfile.lock

+3
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ GEM
4848
sass-embedded (~> 1.75)
4949
jekyll-seo-tag (2.6.1)
5050
jekyll (>= 3.3, < 5.0)
51+
jekyll-sitemap (1.4.0)
52+
jekyll (>= 3.7, < 5.0)
5153
jekyll-watch (2.2.1)
5254
listen (~> 3.0)
5355
json (2.10.1)
@@ -93,6 +95,7 @@ DEPENDENCIES
9395
jekyll-feed (~> 0.17)
9496
jekyll-postcss-v2
9597
jekyll-redirect-from (~> 0.15.0)
98+
jekyll-sitemap
9699
minima (~> 2.0)
97100
rexml
98101
tzinfo-data

_config.yml

+18
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,20 @@ exclude:
1111
- postcss.config.js
1212
- tailwind.config.js
1313

14+
url: "https://fsharp.org"
15+
1416
gems:
1517
- jekyll-redirect-from
1618

19+
20+
# Note: individual pages can be excluded from sitemap by including
21+
# `sitemap: false` in the frontmatter.
22+
# Glob excludes can be achieved with the `defaults` setting in
23+
# this config file
24+
# See: https://github.com/jekyll/jekyll-sitemap
25+
plugins:
26+
- jekyll-sitemap
27+
1728
collections:
1829
testimonials:
1930
output: false
@@ -22,6 +33,13 @@ collections:
2233
output: false
2334
sort_by: order
2435
excerpt_enabled: false
36+
37+
defaults:
38+
-
39+
scope:
40+
path: "archive/**/*"
41+
values:
42+
sitemap: false
2543

2644

2745

sitemap.xml

-39
This file was deleted.

0 commit comments

Comments
 (0)