Skip to content

Commit fee475b

Browse files
authored
Merge pull request opensearch-project#256 from AMoo-Miki/seo
Sitemap enhancements & URL fixes
2 parents 24a96c9 + 83c66d3 commit fee475b

File tree

8 files changed

+19
-11
lines changed

8 files changed

+19
-11
lines changed

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ gem "minima", "~> 2.5"
1717
group :jekyll_plugins do
1818
gem "jekyll-feed", "~> 0.12"
1919
gem "jekyll-paginate"
20+
gem "jekyll-last-modified-at"
2021
gem "jekyll-sitemap"
2122
end
2223

Gemfile.lock

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ GEM
3131
terminal-table (~> 2.0)
3232
jekyll-feed (0.15.1)
3333
jekyll (>= 3.7, < 5.0)
34+
jekyll-last-modified-at (1.3.0)
35+
jekyll (>= 3.7, < 5.0)
36+
posix-spawn (~> 0.3.9)
3437
jekyll-paginate (1.1.0)
3538
jekyll-sass-converter (2.1.0)
3639
sassc (> 2.0.1, < 3.0)
@@ -55,6 +58,7 @@ GEM
5558
jekyll-seo-tag (~> 2.1)
5659
pathutil (0.16.2)
5760
forwardable-extended (~> 2.6)
61+
posix-spawn (0.3.15)
5862
public_suffix (4.0.6)
5963
rb-fsevent (0.10.4)
6064
rb-inotify (0.10.1)
@@ -76,6 +80,7 @@ PLATFORMS
7680
DEPENDENCIES
7781
jekyll (~> 4.2.0)
7882
jekyll-feed (~> 0.12)
83+
jekyll-last-modified-at
7984
jekyll-paginate
8085
jekyll-sitemap
8186
minima (~> 2.5)
@@ -84,4 +89,4 @@ DEPENDENCIES
8489
wdm (~> 0.1.1)
8590

8691
BUNDLED WITH
87-
2.2.19
92+
2.2.22

_config.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ headings:
1616
plugins:
1717
- jekyll-feed
1818
- jekyll-paginate
19+
- jekyll-last-modified-at
1920
- jekyll-sitemap
2021
exclude:
2122
- Gemfile
@@ -36,7 +37,7 @@ defaults:
3637
type: "authors"
3738
values:
3839
layout: "author"
39-
permalink: /:collection/:name
40+
permalink: /:collection/:name/
4041
-
4142
scope:
4243
type: javadocs
@@ -54,13 +55,13 @@ defaults:
5455
type: versions
5556
values:
5657
layout: versions
57-
permalink: versions/:categories/:slug
58+
permalink: versions/:categories/:slug.html
5859
-
5960
scope:
6061
type: artifacts
6162
values:
6263
layout: artifact
63-
permalink: :collection/:categories/:slug
64+
permalink: :collection/:categories/:slug.html
6465

6566
collections:
6667
authors:

_includes/author_panel.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
<h2>
33
{% if include.linked %}
4-
<a href="{{ include.author.url }}.html">
4+
<a href="{{ include.author.url }}">
55
{% endif %}
66
{{ include.author.name }}
77
{% if include.linked %}

_layouts/versions.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,10 +243,10 @@ <h3 class="artifact-name" id="{{component.artifact}}">{{ name_pretty }}</h3>
243243
{% include downloads/final-section.html %}
244244
<hr />
245245
{% if page.next.url %}
246-
<a href="{{page.next.url }}.html">Next Version</a>
246+
<a href="{{page.next.url }}">Next Version</a>
247247
{% endif %}
248248
{% if page.previous.url %}
249-
<a href="{{page.previous.url }}.html">Previous Version</a>
249+
<a href="{{page.previous.url }}">Previous Version</a>
250250
{% endif %}
251251

252252
{%endcapture%}
@@ -257,7 +257,7 @@ <h3 class="artifact-name" id="{{component.artifact}}">{{ name_pretty }}</h3>
257257
<strong>Version:</strong> {{page.version}} {% if page.product == 'odfe' %}(Open Distro for Elasticsearch){% endif %}<br />
258258
<strong>Release Date:</strong> {{ page.date | date: "%b %d, %Y" }}<br />
259259
<a href="{{page.release_notes}}">Release Notes</a><br />
260-
<a href="{{page.url}}.html">Version Permalink</a>
260+
<a href="{{page.url}}">Version Permalink</a>
261261
<hr />
262262
<ul>
263263
{% for section in page.sections %}

authors/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66

77
<ul>
88
{% for author in site.authors %}
9-
<li><a href="{{ author.url }}.html">{{ author.name }}</a></li>
9+
<li><a href="{{ author.url }}">{{ author.name }}</a></li>
1010
{% endfor %}
1111
</ul>

robots.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
layout: none
33
---
44
User-agent: *
5-
Disallow: /docs/javadoc/
5+
Disallow: /docs/javadoc*
6+
Disallow: /javadocs/
67
Sitemap: {{ site.url }}/sitemap-index.xml

versions/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<ul>
55
{% assign versions = site.versions | sort: 'date' | reverse %}
66
{% for version in versions %}
7-
<li><a href="{{ version.url }}.html">
7+
<li><a href="{{ version.url }}">
88
{% if version.product == 'odfe' %} Open Distro for Elasticsearch {% else %} OpenSearch {%endif%} {{ version.version }}</a>
99
</li>
1010
{% endfor %}

0 commit comments

Comments
 (0)