Skip to content

Commit 1a0f070

Browse files
committed
jekyll: fix sitemap lastmod
Signed-off-by: CrazyMax <[email protected]>
1 parent fabb408 commit 1a0f070

File tree

4 files changed

+24
-1
lines changed

4 files changed

+24
-1
lines changed

.dockerignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
.DS_Store
2-
.git
32
.github
43
.gitignore
54
.idea

Gemfile

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ gem 'wdm', '>= 0.1.0' if Gem.win_platform?
55

66
gem 'jekyll', '4.2.2'
77
group :jekyll_plugins do
8+
gem 'jekyll-last-modified-at'
89
gem 'jekyll-redirect-from'
910
gem 'jekyll-relative-links'
1011
gem 'jekyll-sitemap'

Gemfile.lock

+5
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ GEM
4545
rouge (~> 3.0)
4646
safe_yaml (~> 1.0)
4747
terminal-table (~> 2.0)
48+
jekyll-last-modified-at (1.3.0)
49+
jekyll (>= 3.7, < 5.0)
50+
posix-spawn (~> 0.3.9)
4851
jekyll-redirect-from (0.16.0)
4952
jekyll (>= 3.3, < 5.0)
5053
jekyll-relative-links (0.6.1)
@@ -88,6 +91,7 @@ GEM
8891
parallel (1.22.1)
8992
pathutil (0.16.2)
9093
forwardable-extended (~> 2.6)
94+
posix-spawn (0.3.15)
9195
public_suffix (4.0.7)
9296
racc (1.6.0)
9397
rainbow (3.1.1)
@@ -118,6 +122,7 @@ DEPENDENCIES
118122
front_matter_parser (= 1.0.1)
119123
html-proofer (= 3.19.4)
120124
jekyll (= 4.2.2)
125+
jekyll-last-modified-at
121126
jekyll-redirect-from
122127
jekyll-relative-links
123128
jekyll-sitemap

_config.yml

+18
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,24 @@ defaults:
102102
toc_min: 2
103103
toc_max: 4
104104

105+
# Exclude from sitemap
106+
- scope:
107+
path: "assets/**"
108+
values:
109+
sitemap: false
110+
- scope:
111+
path: "**/nav.html"
112+
values:
113+
sitemap: false
114+
- scope:
115+
path: "google*.html"
116+
values:
117+
sitemap: false
118+
- scope:
119+
path: "**/*.pdf"
120+
values:
121+
sitemap: false
122+
105123
# Set the correct edit-URL for some local and remote resources. We usually don't create a direct
106124
# edit link for these, and instead point to the directory that contains the file.
107125
- scope:

0 commit comments

Comments
 (0)