Skip to content

Commit

Permalink
Fix device hiding for variants
Browse files Browse the repository at this point in the history
  • Loading branch information
Demon000 committed Jun 5, 2024
1 parent fbca7ce commit 704feea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pages/devices.html
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,11 @@ <h1>{{ page.title }}</h1>

{%- for device in sorted %}

{%- if device.variant %}
{%- assign url = "devices/" | append: device.codename | append: "/variant" | append: device.variant | append: "/" | relative_url %}
{%- else %}
{%- assign url = "devices/" | append: device.codename | append: "/" | relative_url %}
{%- endif %}
{%- assign match = site.pages | where: "url", url %}

{%- if device.vendor != lastVendor %}
Expand Down

0 comments on commit 704feea

Please sign in to comment.