Skip to content

Commit c774ab6

Browse files
committed
Restore _layouts/default.html to original state
The version warning in 1.1 is in _includes/warning.html, not _layouts/default.html. Reverting the incorrect changes to default.html while keeping the correct fix in warning.html. Signed-off-by: Claude <noreply@anthropic.com>
1 parent e032b54 commit c774ab6

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

_layouts/default.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,7 @@ <h1><a href="https://docs.opensearch.org/latest/">Documentation</a></h1>
142142
{% endif %}
143143
{% endunless %}
144144
<div id="main-content" class="main-content" role="main">
145-
{% if site.doc_version == "supported" %}
146-
<p class="supported-version-warning">You're viewing version {{site.opensearch_major_minor_version}} of the OpenSearch documentation. For the latest version, see the <a href="{% if page.url contains '404' %}{{ site.url }}/latest/about/{% else %}{{ site.url }}/latest{{ page.url }}{% endif %}">current documentation</a>. For information about OpenSearch version maintenance, see <a href="https://opensearch.org/releases.html">Release Schedule and Maintenance Policy</a>.</p>
147-
{% elsif site.doc_version == "unsupported" %}
148-
<p class="unsupported-version-warning">You're viewing version {{site.opensearch_major_minor_version}} of the OpenSearch documentation. This version is no longer maintained. For the latest version, see the <a href="{% if page.url contains '404' %}{{ site.url }}/latest/about/{% else %}{{ site.url }}/latest{{ page.url }}{% endif %}">current documentation</a>. For information about OpenSearch version maintenance, see <a href="https://opensearch.org/releases.html">Release Schedule and Maintenance Policy</a>.</p>
145+
{% include warning.html %}
149146
{% if site.heading_anchors != false %}
150147
{% include vendor/anchor_headings.html html=content beforeHeading="true" anchorBody="<svg viewBox=\"0 0 16 16\" aria-hidden=\"true\"><use xlink:href=\"#svg-link\"></use></svg>" anchorClass="anchor-heading" anchorAttrs="aria-labelledby=\"%html_id%\"" %}
151148
{% else %}

0 commit comments

Comments
 (0)