diff --git a/_templates/oshw.html b/_templates/oshw.html
index a860642e5e0fff121c9208b3e118a5e19bbee36f..a601739b3d5ec62083f0b46d7938e009a7306c01 100644
--- a/_templates/oshw.html
+++ b/_templates/oshw.html
@@ -7,7 +7,7 @@
       <div class="card-body">
         <p class="card-text text-dark">
             <a href="https://certification.oshwa.org/{{ oshw_id|lower }}.html" target="_blank">
-              {% if pages_slug %}
+              {% if docs_url %}
                 <img src="{{docs_url}}/_static/images/oshw/{{board}}_{{oshw_id}}.svg" alt="{{board}} OSHW mark"/>
               {% else %}
                 <img src="../../../../_static/images/oshw/{{board}}_{{oshw_id}}.svg" alt="{{board}} OSHW mark"/>