From 5322a15ceb4646c0622d4e9c8811004ccfc7fd6e Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Thu, 23 Jul 2026 12:56:40 +0800 Subject: [PATCH] docs(layouts): add header comments to undocumented partials Add `{{/* ... */}}` header comments to 25 partials that had no documentation, enabling `pnpm gen:docs` to generate their reference docs. Also fix base/head/index.html leading blank line that prevented parser matching. Groups covered: base/, feed/, function/, home/, init/, plugin/, single/, store/, (root). --- layouts/_partials/base/breadcrumb.html | 9 +++++++++ layouts/_partials/base/comment.html | 10 ++++++++++ layouts/_partials/base/footer.html | 13 +++++++++++++ layouts/_partials/base/head/index.html | 1 - layouts/_partials/base/header.html | 12 ++++++++++++ layouts/_partials/base/paginator.html | 7 +++++++ layouts/_partials/base/widgets.html | 15 +++++++++++++++ layouts/_partials/custom.html | 9 +++++++++ layouts/_partials/feed/rss.html | 8 ++++++++ layouts/_partials/function/content.html | 13 +++++++++++++ layouts/_partials/function/get-remote-json.html | 8 ++++++++ layouts/_partials/function/is-cjk.html | 6 ++++++ layouts/_partials/function/is-url-remote.html | 7 +++++++ layouts/_partials/function/resource.html | 11 +++++++++++ layouts/_partials/function/xml-content.html | 14 ++++++++++++++ layouts/_partials/home/profile.html | 9 +++++++++ layouts/_partials/init/compatibility.html | 7 +++++++ layouts/_partials/init/detection-encryption.html | 7 +++++++ layouts/_partials/init/detection-pagefind.html | 7 +++++++ layouts/_partials/init/detection-version.html | 8 ++++++++ layouts/_partials/init/global.html | 8 ++++++++ layouts/_partials/init/index.html | 12 +++++++++++- layouts/_partials/plugin/admonition.html | 3 ++- layouts/_partials/plugin/pagefind-metadata.html | 8 ++++++++ layouts/_partials/single/expiration-reminder.html | 8 ++++++++ layouts/_partials/single/post-author.html | 7 +++++++ layouts/_partials/single/post-included-in.html | 7 +++++++ layouts/_partials/single/reward.html | 7 +++++++ layouts/_partials/store/script.html | 8 ++++++++ layouts/_partials/store/style.html | 7 +++++++ 30 files changed, 253 insertions(+), 3 deletions(-) diff --git a/layouts/_partials/base/breadcrumb.html b/layouts/_partials/base/breadcrumb.html index d2249142..dcbbc6e1 100644 --- a/layouts/_partials/base/breadcrumb.html +++ b/layouts/_partials/base/breadcrumb.html @@ -1,3 +1,12 @@ +{{- /* + Render breadcrumb navigation for the current page. + + Displays a hierarchical path from the site root to the current page. + Supports configurable separator, sticky mode, home visibility, and title capitalization. + + Called from: layouts/baseof.html. +*/ -}} + {{- if (gt (len .Ancestors.Reverse) 1) | and (eq .Site.Params.breadcrumb.enable true) -}} {{- $separator := .Site.Params.breadcrumb.separator | default "/" -}}