TODOROKI MOTION ブログは以下に移動しました。

3秒後に新しいページへ移動します。
自動的に移動しない場合は、お手数ですが以下をクリックしてください。

ブログ(トドロキモーション公式サイト内)

The TODOROKI MOTION blog has moved to a new location.

he page will redirect in 3 seconds.
If it doesn't, please click the link below.

Blog (on the official TODOROKI MOTION website)

 特定のページを検索エンジンの対象から除外する

 自分用のメモなどのエントリーは、メニューリストからは当然外したいし、検索エンジンの対象から隠したい。その場合は、それらの url を sitemap から除外すればOK。設定は以下のとおり。

astro.config.mjs::

export default defineConfig({
    site: "https://www.blender-ikkinomi.com/",
    integrations: [preact(), tailwind(), mdx(), sitemap({
      filter: (page) =>
        page !== 'https://www.blender-ikkinomi.com/secret/' &&
        page !== 'https://www.blender-ikkinomi.com/etc/first/' &&
        page !== 'https://www.blender-ikkinomi.com/etc/en/first/',
    })],
    output: 'static',
    ...
}

 integrations に sitemap() を追加して、filter: 関数に除外したいページの url の時 false になるように条件を記述する。この場合は、secret と、etc/first, etc/en/first が sitemap から除外される。