Skip to content

Commit

Permalink
DOC-5593: Add lastmod tag to sitemap (cockroachdb#15073)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickvigilante authored Sep 16, 2022
1 parent a262d92 commit d7b129c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ group :jekyll_plugins do
gem "jekyll-include-cache"
gem 'jekyll-algolia', "~> 1.0", path: "./jekyll-algolia-dev"
gem 'jekyll-remote-include', github: 'ianjevans/jekyll-remote-include', tag: 'v1.1.6'
gem "jekyll-last-modified-at"
end
1 change: 1 addition & 0 deletions _config_base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ keep_files:
markdown: Redcarpet
plugins:
- jekyll-include-cache
- jekyll-last-modified-at
- jekyll-minifier
release_info:
v1.0:
Expand Down
1 change: 1 addition & 0 deletions sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ layout: null
{%- unless page.url contains '404' or page.sitemap == false or page.url contains site.versions["dev"] and stable_pages_names contains page.name %}
<url>
<loc>{{ page.canonical | absolute_url | replace: dev_path, "/dev/" }}</loc>
<lastmod>{{ page.last_modified_at | date: "%Y-%m-%dT%H:%M:%S%z" }}</lastmod>
</url>
{%- endunless -%}
{%- endif -%}
Expand Down

0 comments on commit d7b129c

Please sign in to comment.