diff --git a/layout/_partials/head/head-unique.njk b/layout/_partials/head/head-unique.njk
index 00b2e668b..ee2724155 100644
--- a/layout/_partials/head/head-unique.njk
+++ b/layout/_partials/head/head-unique.njk
@@ -12,9 +12,9 @@
{%- set canonical = canonical | replace(r/\.html$/, '') %}
{%- endif %}
-{% if page.noindex %}
+{%- if page.noindex %}
-{% endif %}
+{%- endif %}
{# Exports some front-matter variables to Front-End #}
{# https://hexo.io/docs/variables.html #}
{{ next_data('page', next_config_unique()) }}