perf(home): disable third-party resource loading on the home page, and improve plugin comments

This commit is contained in:
Cell
2026-04-30 19:48:52 +08:00
parent cedff8610b
commit 502e427a0c
26 changed files with 200 additions and 45 deletions
@@ -1,4 +1,14 @@
{{- /* Hook for code blocks rendering */ -}}
{{- /*
Code block wrapper hook for highlight output.
- Applies wrapper UI features based on codeblock config.
- Supports classic/modern modes, copy button, expand button, and line-number states.
@param {Object} .Attributes code block attributes
@param {Object} .Options code fence options
@param {String} .Inner raw code content
@param {Object} .Page current page context
@param {String} .Type language/type for current block
*/ -}}
{{- $config := .Attributes | merge .Page.Params.codeblock | merge .Page.Site.Params.codeblock -}}
{{- $result := transform.HighlightCodeBlock . -}}
{{- $wrapper := $result.Wrapped -}}