{%- comment -%} Canonical URL: set `canonical_url:` in a page's frontmatter to mark another URL as the primary version. jekyll-seo-tag honors that natively and emits only one . Used on thin overview pages whose `/docs//reference/` companion is the substantive doc. {%- endcomment -%} {%- comment -%} Markdown twin discovery: advertise the raw-markdown version of this page, emitted by _plugins/llm_markdown.rb and served under content negotiation by worker.js. The path scheme below MUST match that plugin's `twin_relpath` and worker.js's `markdownTwin`. The home page ("/") has no twin. {%- endcomment -%} {%- assign _twin = "" -%} {%- if page.url contains ".html" -%} {%- assign _twin = page.url | replace: ".html", ".md" -%} {%- else -%} {%- assign _last = page.url | slice: -1 -%} {%- if page.url != "/" and _last == "/" -%} {%- assign _n = page.url.size | minus: 1 -%} {%- assign _twin = page.url | slice: 0, _n | append: ".md" -%} {%- endif -%} {%- endif -%} {%- if _twin != "" %} {%- endif %} {% include analytics.html %}