Expand description
Search engines and language models: JSON-LD, sitemaps and llms.txt.
json_ld: structured data (Organization,FAQPage,BreadcrumbList…) as a<script type="application/ld+json">, escaped so the JSON can never close the script element.Sitemap:/sitemap.xml, with the other languages of each page (xhtml:link rel="alternate" hreflang) andlastmod.LlmsTxt:/llms.txt, the Markdown index of a site for language models (https://llmstxt.org).
The canonical and hreflang links of a page come from the visitor’s
locale: I18n::alternate_links.
ocre g seo writes src/seo.rs with the routes and a list of pages.
Structs§
- LlmsTxt
/llms.txt: a site’s summary and links in Markdown, for language models (https://llmstxt.org).- Sitemap
/sitemap.xml: the pages search engines should crawl.- Sitemap
Url - A page of a
Sitemap: its absolute URL, last change and other languages.
Functions§
- json_ld
dataas a JSON-LD<script>for a page’s<head>.