Skip to content

Commit

Permalink
feat: add website outdated banner (#271)
Browse files Browse the repository at this point in the history
Signed-off-by: Charles-Edouard Brétéché <[email protected]>
  • Loading branch information
eddycharly authored Jan 9, 2024
1 parent 520e334 commit 57de0f4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions website/docs/overrides/main.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
{% extends "base.html" %}

{% block outdated %}
You're not viewing the latest version.
<a href="{{ '../' ~ base_url }}">
<strong>Click here to go to latest.</strong>
</a>
{% endblock %}

{% block extrahead %}
{% set title = config.site_name %}
{% if page and page.title and not page.is_homepage %}
Expand Down

0 comments on commit 57de0f4

Please sign in to comment.