Skip to content

Commit de7184c

Browse files
committed
Move robots meta to HEAD
1 parent 222c89a commit de7184c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

_includes/head.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,12 @@
122122

123123
<meta name="robots" content="max-image-preview:large">
124124

125+
{% if page.layout == "post" %}
126+
<meta name=robots content="noai, noimageai">
127+
{% endif %}
128+
125129
{% if page.indexable == false %}
126-
<meta name=robots content=noindex>
130+
<meta name=robots content=noindex>
127131
{% endif %}
128132

129133
<script>

_layouts/post.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66

77
{% include header.html %}
88

9-
<meta name=robots content="noai, noimageai">
10-
119
<div class=wrapper>
1210

1311
<div class=layout>

0 commit comments

Comments
 (0)