mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-17 18:22:33 +00:00
Allow specifying noindex for robots (#841)
Co-authored-by: Mimi <stevenjoezhang@gmail.com>
This commit is contained in:
parent
acec1cf182
commit
c8bf953545
@ -12,7 +12,9 @@
|
||||
{%- set canonical = canonical | replace(r/\.html$/, '') %}
|
||||
{%- endif %}
|
||||
<link rel="canonical" href="{{ canonical }}">
|
||||
|
||||
{%- if page.noindex %}
|
||||
<meta name="robots" content="noindex">
|
||||
{%- endif %}
|
||||
{# Exports some front-matter variables to Front-End #}
|
||||
{# https://hexo.io/docs/variables.html #}
|
||||
{{ next_data('page', next_config_unique()) }}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user