Jekyll の llms.txt
Jekyll は、フロントマターのないファイルを静的ファイルとして扱います。llms.txt をルートに置けば、そのまま配信されます。
最終更新:
ファイルの保存先
Jekyllは、アンダースコアやドットで始まらず、YAMLフロントマターもないファイルをすべて、そのままビルド済み
_site ディレクトリへパスを維持したままコピーされます。
llms.txt をプロジェクトルートに置くと、次で配信されます: /llms.txt.
方法:ルートの静的ファイル
- リポジトリのルートにファイルを作成します:
touch llms.txt - コンテンツは以下に従って作成してください。 フロントマターなし (front matterを付けるとJekyllがレンダリングを試みます):
# Your Site Name
> One-sentence description of your site for LLM context.
## Core pages
- [Home](https://yourdomain.com/): what this site is about.
- [Blog](https://yourdomain.com/blog/): articles and updates.
- [About](https://yourdomain.com/about/): who maintains this site.
- ビルドしてデプロイ:
bundle exec jekyll build.
アンダースコアおよびドットファイル
Jekyll は、先頭が _ または . デフォルトです。_ または . で始まるファイルは通常対象になりません。これは
llms.txt。ただし、そのようなファイルが必要になった場合は、
include のリストを _config.yml:
# _config.yml
include:
- _example.txt
設定の確認
curl -sI https://yourdomain.com/llms.txt | grep -i content-type
# expect: content-type: text/plain 多くの Jekyll サイトは GitHub Pages でホストされ、ドメインのルートからファイルを配信します。以下の GitHub Pagesガイド その設定については、および フォーマットガイド 内容を正確に伝えるために。