You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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>
Copy file name to clipboardExpand all lines: docs/content/docs/guide/configuration.fa.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -505,6 +505,15 @@ outputs:
505
505
- خلاصه صفحات و تاریخ انتشار
506
506
- لینکهای مستقیم به تمام محتوا
507
507
508
+
میتوانید صفحات یا بخشهای خاصی را با تنظیم `llms: false` در frontmatter آنها حذف کنید:
509
+
510
+
```yaml
511
+
---
512
+
title: "یادداشتهای داخلی"
513
+
llms: false
514
+
---
515
+
```
516
+
508
517
فایل llms.txt به طور خودکار از ساختار محتوای شما ایجاد میشود و سایت شما را برای ابزارهای هوش مصنوعی و مدلهای زبانی برای زمینه و مرجع قابل دسترستر میکند.
Copy file name to clipboardExpand all lines: docs/content/docs/guide/configuration.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -600,6 +600,15 @@ This will generate an `llms.txt` file at your site's root containing:
600
600
- Page summaries and publication dates
601
601
- Direct links to all content
602
602
603
+
You can exclude specific pages or sections by setting `llms: false` in their front matter:
604
+
605
+
```yaml
606
+
---
607
+
title: "Internal Notes"
608
+
llms: false
609
+
---
610
+
```
611
+
603
612
The llms.txt file is automatically generated from your content structure and makes your site more accessible to AI tools and language models for context and reference.
0 commit comments