docs/overrides/main.html

28 lines
1.3 KiB
HTML

{% extends "base.html" %}
{% block extrahead %}
<meta name="theme-color" content="#1a7dc9" />
{% endblock %}
{% block announce %}
{% if config.extra.version_warning %}
<div class="versionwarning" style="margin: .6rem auto; padding: 0 .8rem">
<h1 style="color: #ffcc00">You are viewing documentation for Knative version: {{ config.extra.knative_version }}</h1>
<p>
Knative {{ config.extra.knative_version }} documentation is no longer actively maintained. The version you are currently viewing is a static snapshot. For up-to-date documentation, see <a href="{{ base_url }}/../docs/">the latest version</a>.
</p>
</div>
{% endif %}
<div class="versionwarning" style="display: flex; justify-content: center;">
<p>👋 Welcome to the new Knative.dev! Pardon our progress, if you find any issues with this site, please submit them <a target="_blank" href="https://github.com/knative/docs/issues/new/choose">here</a>!</p>
</div>
{% endblock %}
{% block scripts %}
{{ super() }}
<!-- For now, load Jquery and Bootstrap because the cookie warning (built from the hugo-based website) uses them -->
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"></script>
<script src="/js/cookie-consent.js"></script>
{% endblock %}