mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 23:38:56 +00:00
5322a15ceb
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).
38 lines
1.1 KiB
HTML
38 lines
1.1 KiB
HTML
{{- /*
|
|
Content processing pipeline partial.
|
|
|
|
Applies a chain of content transformations: ruby annotations, fractions,
|
|
Font Awesome icons, task lists, marked text, color preview, and HTML escaping.
|
|
|
|
@param {String} .Content - The raw HTML content
|
|
@param {Boolean} [.Ruby] - Whether to process ruby annotations
|
|
@param {Boolean} [.Fraction] - Whether to process fraction syntax
|
|
@param {Boolean} [.Fontawesome] - Whether to process Font Awesome shortcodes
|
|
@return {String} The processed content
|
|
*/ -}}
|
|
|
|
{{- $content := .Content -}}
|
|
|
|
{{- if $content -}}
|
|
|
|
{{- if .Ruby -}}
|
|
{{- $content = partial "function/ruby.html" $content -}}
|
|
{{- end -}}
|
|
|
|
{{- if .Fraction -}}
|
|
{{- $content = partial "function/fraction.html" $content -}}
|
|
{{- end -}}
|
|
|
|
{{- if .Fontawesome -}}
|
|
{{- $content = partial "function/fontawesome.html" $content -}}
|
|
{{- end -}}
|
|
|
|
{{- $content = partial "function/task-lists.html" $content -}}
|
|
{{- $content = partial "function/marked-text.html" $content -}}
|
|
{{- $content = partial "function/color-preview.html" $content -}}
|
|
{{- $content = partial "function/escape.html" $content -}}
|
|
|
|
{{- end -}}
|
|
|
|
{{- return $content -}}
|