Skip to content

Commit 63b347c

Browse files
authored
Merge pull request #473 from SpineEventEngine/absolute-urls-in-sitemap
List all `sitemap.xml` entries with an absolute URL
2 parents 3a3b978 + c27be45 commit 63b347c

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

.github/workflows/check-code-embedding.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,14 @@ jobs:
3636
with:
3737
ruby-version: '2.7.4'
3838

39+
# Bundler version is restricted to `2.4.22`,
40+
# as we want to use Ruby `2.7.4` to match GH Pages environment.
41+
#
42+
# Any newer versions of Bundler require Ruby 3.x,
43+
# which are much newer than what's GH Pages has at the moment.
44+
#
3945
- run: |
40-
gem install bundler
46+
gem install bundler -v 2.4.22
4147
bundle install
4248
4349
- name: Check Embedding

.github/workflows/proof-links.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,15 @@ jobs:
2121
with:
2222
ruby-version: '2.7.4'
2323

24+
# Bundler version is restricted to `2.4.22`,
25+
# as we want to use Ruby `2.7.4` to match GH Pages environment.
26+
#
27+
# Any newer versions of Bundler require Ruby 3.x,
28+
# which are much newer than what's GH Pages has at the moment.
29+
#
2430
- name: Run Jekyll build
2531
run: |
26-
gem install bundler
32+
gem install bundler -v 2.4.22
2733
bundle install
2834
bundle exec jekyll build
2935

sitemap.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ sitemap_exclude: y
77
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
88
{% for post in site.posts %}
99
<url>
10-
<loc>{{site.baseurl}}{{ post.url | remove: 'index.html' }}</loc>
10+
<loc>{{site.url}}{{site.baseurl}}{{ post.url | remove: 'index.html' }}</loc>
1111
</url>
1212
{% endfor %}
1313

1414
{% for page in site.pages %}
1515
{% if page.sitemap_exclude != 'y' %}
1616
<url>
17-
<loc>{{site.baseurl}}{{ page.url | remove: 'index.html' }}</loc>
17+
<loc>{{site.url}}{{site.baseurl}}{{ page.url | remove: 'index.html' }}</loc>
1818
</url>
1919
{% endif %}
2020
{% endfor %}

0 commit comments

Comments
 (0)