feat(llms): add option to exclude pages and sections from llms.txt (#918)

* feat: improve section filtering in llms.txt

* fix(llms): correct where syntax and add page exclusion filter

- Fix invalid Hugo template syntax in where clause
- Use boolean comparison instead of string for llms param
- Add filtering to recursive llms-section-tree template
- Document llms exclusion feature in all languages (en, ja, fa, zh-cn)

---------

Co-authored-by: Xin <xin@imfing.com>
This commit is contained in:
Matheus Flausino
2026-01-29 18:06:12 -03:00
committed by GitHub
parent 50b9c927c2
commit 744e843880
5 changed files with 41 additions and 6 deletions

View File

@@ -505,6 +505,15 @@ outputs:
- خلاصه صفحات و تاریخ انتشار
- لینک‌های مستقیم به تمام محتوا
می‌توانید صفحات یا بخش‌های خاصی را با تنظیم `llms: false` در frontmatter آنها حذف کنید:
```yaml
---
title: "یادداشت‌های داخلی"
llms: false
---
```
فایل llms.txt به طور خودکار از ساختار محتوای شما ایجاد می‌شود و سایت شما را برای ابزارهای هوش مصنوعی و مدل‌های زبانی برای زمینه و مرجع قابل دسترس‌تر می‌کند.
### Open Graph