Skip to content

Commit 6aa1dde

Browse files
committed
Add outdated flag
1 parent e4dfd58 commit 6aa1dde

3 files changed

Lines changed: 8 additions & 0 deletions

File tree

app/templates/pages/chapter.html.twig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<div class="chapter-content">
88
{% include "partials/wip.html.twig" %}
99
{% include "partials/obsolete.html.twig" %}
10+
{% include "partials/outdated.html.twig" %}
1011
{{ page.getContent()|version_paths(page.getVersion())|raw }}
1112
</div>
1213
{% endblock %}

app/templates/pages/docs.html.twig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
{% include "partials/tags.html.twig" %}
1010
{% include "partials/wip.html.twig" %}
1111
{% include "partials/obsolete.html.twig" %}
12+
{% include "partials/outdated.html.twig" %}
1213
{{ page.getContent()|version_paths(page.getVersion())|raw }}
1314
</div>
1415
{% endblock %}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{% if page.getFrontMatter().outdated %}
2+
<div class="uk-alert uk-alert-warning">
3+
<p class="uk-alert-title"><i class="fa-solid fa-clock uk-icon"></i>Outdated page</p>
4+
<p>This page may be outdated and could benefit from updates. You can help by <a href="{{ page.github }}">contributing on GitHub</a>.</p>
5+
</div>
6+
{% endif %}

0 commit comments

Comments
 (0)