Skip to content

Commit

Permalink
Use the modified dates of files in the sitemap (opensearch-project#3774)
Browse files Browse the repository at this point in the history
* The extracted dates are also added as a comment to the `head` of HTML pages

Signed-off-by: Miki <[email protected]>
  • Loading branch information
AMoo-Miki authored and harshavamsi committed Oct 31, 2023
1 parent ee867fb commit 248fcaa
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ gem "jekyll-redirect-from", "~> 0.16"

# If you have any plugins, put them here!
group :jekyll_plugins do
gem "jekyll-last-modified-at"
gem "jekyll-sitemap"
end

Expand All @@ -34,6 +35,7 @@ gem "wdm", "~> 0.1.0" if Gem.win_platform?
# Installs webrick dependency for building locally
gem "webrick", "~> 1.7"


# Link checker
gem "typhoeus"
gem "ruby-link-checker"
gem "ruby-link-checker"
5 changes: 5 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,15 @@ anchor_links: true
footer_content:

plugins:
- jekyll-last-modified-at
- jekyll-remote-theme
- jekyll-redirect-from
- jekyll-sitemap

# This format has to conform to RFC822
last-modified-at:
date-format: '%a, %d %b %Y %H:%M:%S %z'

# Exclude from processing.
# The following items will not be processed, by default. Create a custom list
# to override the default setting.
Expand Down
2 changes: 2 additions & 0 deletions _includes/head_custom.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@
{% else %}
<script src="{{ '/docs/latest/assets/js/version-selector.js' }}"></script>
{% endif %}

<!-- Last-Modified: {% last_modified_at %} -->

0 comments on commit 248fcaa

Please sign in to comment.