mirror of
https://github.com/alirezarezvani/claude-skills.git
synced 2026-09-06 08:15:58 +00:00
Follow-up to the llms.txt footer links (PR #879). The automated review noted the URL join assumed site_url ends in "/". Compute the base once with trim('/') so the links stay correct whether or not site_url has a trailing slash; trim only strips '/' from the ends, leaving "https://" intact. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Sy9WFFurEjL8gjCp9fs7bp
33 lines
1.3 KiB
HTML
33 lines
1.3 KiB
HTML
{#-
|
|
Custom copyright partial.
|
|
|
|
Extends Material's default footer copyright line with links to the
|
|
llms.txt / llms-full.txt AI-agent discovery files (llmstxt.org convention),
|
|
so AI agents and crawlers can find a machine-readable description of the repo
|
|
from any page's footer.
|
|
-#}
|
|
{% if config.copyright %}
|
|
<div class="md-copyright">
|
|
{% if config.copyright %}
|
|
<div class="md-copyright__highlight">
|
|
{{ config.copyright }}
|
|
</div>
|
|
{% endif %}
|
|
{#- trim('/') strips a trailing slash from site_url so the join stays
|
|
correct whether or not site_url ends in "/" (defensive against future
|
|
config edits). It only strips '/' from the ends, so "https://" is safe. -#}
|
|
{% set ai_base = (config.site_url or '') | trim('/') %}
|
|
<div class="md-copyright__ai">
|
|
For AI agents:
|
|
<a href="{{ ai_base ~ '/llms.txt' }}" title="Machine-readable site index (llms.txt convention)">llms.txt</a>
|
|
·
|
|
<a href="{{ ai_base ~ '/llms-full.txt' }}" title="Full repository description for AI agents">llms-full.txt</a>
|
|
</div>
|
|
{% if not config.extra.generator == false %}
|
|
Made with
|
|
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
|
|
Material for MkDocs
|
|
</a>
|
|
{% endif %}
|
|
</div>
|
|
{% endif %}
|