mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
2c0b48370b
* feat(gen-docs): add documentation generation package with SassDoc and TypeDoc support Add new `@hugo-fixit/gen-docs` package that parses Hugo config (hugo.toml) and generates documentation. Includes SassDoc annotations for SCSS variables and mixins, TypeDoc config for TypeScript source docs, and a `.sassdocrc` configuration file. * docs(readme): add browsers support section * feat(gen-docs): add Hugo partials docs generation and fix config empty sections - Add partial-parser.ts: parses Hugo partial comment blocks (@param/@return/@example) - Add partials.ts renderer: generates grouped Markdown with param tables - Add `partials` subcommand with -t/-o options for template injection - Fix config-parser: empty TOML sections (library.js/library.css) now retain descriptions - Fix config-parser: correctly distinguish section-level vs key-level comments - Update README with partials subcommand documentation
22 lines
848 B
HTML
22 lines
848 B
HTML
{{- /*
|
|
Social profile link helper.
|
|
- Builds destination from explicit URL or from Prefix/Template/Id.
|
|
- Delegates final rendering to plugin/link.html with rel=me.
|
|
@param {String} [.Url] - Explicit target URL
|
|
@param {String} [.Template] - URL template containing one %%v placeholder
|
|
@param {String} [.Prefix] - URL prefix used to build Template
|
|
@param {String} [.Id] - Account id used by Template
|
|
*/ -}}
|
|
|
|
{{- $destination := "" -}}
|
|
{{- with .Url -}}
|
|
{{- $destination = . | relLangURL -}}
|
|
{{- else -}}
|
|
{{- $template := .Template | default "%v" -}}
|
|
{{- with .Prefix -}}
|
|
{{- $template = . | strings.TrimSuffix "/" | printf "%v/%%v" -}}
|
|
{{- end -}}
|
|
{{- $destination = printf (string $template) .Id -}}
|
|
{{- end -}}
|
|
{{- dict "Destination" $destination "Rel" "me" "ExternalIcon" false | merge . | partial "plugin/link.html" -}}
|