我知道要在我的网站上阻止Pinterest,需要将以下代码嵌入到网站的头部中:<meta name="pinterest" content="nopin" />
但是,在使用新的导出元数据对象格式的Next 13中,我不确定该如何实现。查阅了该对象的文档,但是无法理解。
export const metadata = {
title: "Create Next App",
description: "Generated by create next app",
};
编辑(4月18日): 我不确定为什么之前似乎可以工作,但是按照Mathieu(和文档)建议添加元标记似乎实际上并没有起作用。
我在根布局文件中添加了这个,但Pinterest的固定选项仍然出现在我的网站上。
export const metadata = {
other: { pinterest: "nopin" },
};