Skip to content

Commit f846439

Browse files
committed
feat(seo): add llms.txt, robots.txt, Twitter cards, and Open Graph tags
- Add llms.txt (2.5KB summary for LLM crawlers) - Add llms-full.txt (182KB full docs content for LLM context) - Add robots.txt with sitemap reference - Add Twitter card meta tags to all docs pages - Update theme-color to brand purple - Hugo already generates sitemap.xml and Open Graph tags
1 parent 2374b70 commit f846439

5 files changed

Lines changed: 6029 additions & 2 deletions

File tree

hugo.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,18 @@ title: Zerfoo - ML Framework for Go
44
theme: hugo-book
55

66
params:
7+
description: "Production-grade ML inference and training framework for Go. 245 tok/s on Gemma 3 1B. Zero CGo. 20 model architectures."
78
BookTheme: auto
89
BookToC: true
910
BookSection: docs
1011
BookLogo: /logo.png
1112
BookMenuBundle: /menu
1213
BookSearch: true
1314
BookDateFormat: January 2, 2006
15+
images:
16+
- /zerfoo.png
17+
18+
enableRobotsTXT: true
1419

1520
markup:
1621
goldmark:
@@ -19,3 +24,11 @@ markup:
1924
highlight:
2025
style: monokai
2126
lineNos: false
27+
28+
outputs:
29+
home:
30+
- HTML
31+
- RSS
32+
section:
33+
- HTML
34+
- RSS

layouts/_partials/docs/html-head.html

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,18 @@
66
<meta charset="UTF-8">
77
<meta name="viewport" content="width=device-width, initial-scale=1.0">
88
<meta name="description" content="{{ or .Description .Summary | plainify | htmlUnescape }}">
9-
<meta name="theme-color" media="(prefers-color-scheme: light)" content="#ffffff">
10-
<meta name="theme-color" media="(prefers-color-scheme: dark)" content="#2e3440">
9+
<meta name="theme-color" media="(prefers-color-scheme: light)" content="#7C3AED">
10+
<meta name="theme-color" media="(prefers-color-scheme: dark)" content="#8B5CF6">
1111
<meta name="color-scheme" content="light dark">
1212

13+
<!-- Twitter Card -->
14+
<meta name="twitter:card" content="summary_large_image">
15+
<meta name="twitter:title" content="{{ partial "docs/html-head-title" . }}">
16+
<meta name="twitter:description" content="{{ or .Description .Summary | plainify | htmlUnescape | truncate 200 }}">
17+
{{- with .Site.Params.images }}
18+
<meta name="twitter:image" content="{{ index . 0 | absURL }}">
19+
{{- end }}
20+
1321
{{- with .Page.Params.BookHref -}}
1422
<meta http-equiv="Refresh" content="0; url='{{ . }}'" />
1523
{{- end -}}

0 commit comments

Comments
 (0)