mirror of
https://github.com/iSharkFly-Docs/opensearch-docs-cn
synced 2025-02-18 03:14:43 +00:00
Use the modified dates of files in the sitemap (#3774)
* The extracted dates are also added as a comment to the `head` of HTML pages Signed-off-by: Miki <miki@amazon.com>
This commit is contained in:
parent
08a4128b5d
commit
f97cd15b7d
2
Gemfile
2
Gemfile
@ -22,6 +22,7 @@ gem "jekyll-redirect-from", "~> 0.16"
|
|||||||
|
|
||||||
# If you have any plugins, put them here!
|
# If you have any plugins, put them here!
|
||||||
group :jekyll_plugins do
|
group :jekyll_plugins do
|
||||||
|
gem "jekyll-last-modified-at"
|
||||||
gem "jekyll-sitemap"
|
gem "jekyll-sitemap"
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -34,6 +35,7 @@ gem "wdm", "~> 0.1.0" if Gem.win_platform?
|
|||||||
# Installs webrick dependency for building locally
|
# Installs webrick dependency for building locally
|
||||||
gem "webrick", "~> 1.7"
|
gem "webrick", "~> 1.7"
|
||||||
|
|
||||||
|
|
||||||
# Link checker
|
# Link checker
|
||||||
gem "typhoeus"
|
gem "typhoeus"
|
||||||
gem "ruby-link-checker"
|
gem "ruby-link-checker"
|
@ -202,10 +202,15 @@ anchor_links: true
|
|||||||
footer_content:
|
footer_content:
|
||||||
|
|
||||||
plugins:
|
plugins:
|
||||||
|
- jekyll-last-modified-at
|
||||||
- jekyll-remote-theme
|
- jekyll-remote-theme
|
||||||
- jekyll-redirect-from
|
- jekyll-redirect-from
|
||||||
- jekyll-sitemap
|
- 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.
|
# Exclude from processing.
|
||||||
# The following items will not be processed, by default. Create a custom list
|
# The following items will not be processed, by default. Create a custom list
|
||||||
# to override the default setting.
|
# to override the default setting.
|
||||||
|
@ -12,3 +12,5 @@
|
|||||||
{% else %}
|
{% else %}
|
||||||
<script src="{{ '/docs/latest/assets/js/version-selector.js' }}"></script>
|
<script src="{{ '/docs/latest/assets/js/version-selector.js' }}"></script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
<!-- Last-Modified: {% last_modified_at %} -->
|
||||||
|
Loading…
x
Reference in New Issue
Block a user