Skip to content

Commit

Permalink
Add discouraged features tab
Browse files Browse the repository at this point in the history
  • Loading branch information
captainbrosset committed Feb 20, 2025
1 parent 46cd752 commit 92d1ffb
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions site/_includes/feature_list_views.njk
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<li><a href="/widely-available" class="baseline-high">Widely available</a></li>
<li><a href="/limited-availability" class="baseline-false">Limited availability</a></li>
<li><a href="/one-missing-engine" class="baseline-false">One missing engine</a></li>
<li><a href="/discouraged" class="discouraged-info">Discouraged</a></li>
{% for browser in browsers %}
<li><a href="/browsers/{{ browser.id | slugify }}/">{{ browser.name }}</a></li>
{% endfor %}
Expand Down
22 changes: 22 additions & 0 deletions site/discouraged.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
title: Discouraged features
layout: layout.njk
---

<main class="explore-features">
{% include "feature_list_views.njk" %}

<h1>{{ title }}</h1>

<p>Using the following features is discouraged, even if they're still implemented in browsers, because standards bodies and/or browser implementers have agreed that they should not be used.</p>

<ul class="features">
{% for feature in allFeatures %}
{% if feature.discouraged %}
<li>
{% include "feature_short.njk" %}
</li>
{% endif %}
{% endfor %}
</ul>
</main>

0 comments on commit 92d1ffb

Please sign in to comment.