added platform

This commit is contained in:
2026-10-20 10:58:30 -06:00
parent ec9ae0cd22
commit 2bfede4f6b
71 changed files with 2611 additions and 5 deletions
+5 -1
View File
@@ -1,9 +1,13 @@
{{- $items := slice -}}
{{- range site.RegularPages -}}
{{- $section := .CurrentSection.Title -}}
{{- if and (eq .Section "platform") (ne .CurrentSection .FirstSection) -}}
{{- $section = printf "%s · %s" .FirstSection.Title $section -}}
{{- end -}}
{{- $items = $items | append (dict
"title" .Title
"url" .RelPermalink
"section" (cond (eq .Section "apps") (.Params.category | default "Applications") .CurrentSection.Title)
"section" (cond (eq .Section "apps") (.Params.category | default "Applications") $section)
"tagline" (.Params.tagline | default "")
"replaces" (delimit (.Params.replaces | default slice) ", ")
"headings" (delimit (findRE `(?m)^#{2,3} .+$` .RawContent) " " | replaceRE `#+ ` "")