diff --git a/_includes/head.html b/_includes/head.html index 1530da3b..60056135 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -3,9 +3,21 @@ - {%- if page.noindex or page.collection == 'games' and page.development-state != stable -%} + {%- assign dev-state = 'stable' -%} + {%- if page.collection == 'games' -%} + {%- assign dev-state = page.development-state -%} + {%- elsif page.collection == 'videos' -%} + {%- for game in site.games -%} + {%- if game.slug == page.slug -%} + {%- assign dev-state = game.development-state -%} + {%- break -%} + {%- endif -%} + {%- endfor -%} + {%- endif %} + + {% if page.noindex or dev-state != "stable" -%} - {%- endif -%} + {%- endif %} {% include seo.html %}