Initial commit.

This commit is contained in:
2025-12-10 16:49:59 -08:00
commit 2a2b4a3f83
1366 changed files with 95853 additions and 0 deletions

View File

@@ -0,0 +1 @@
{{ return time.Format (site.Language.Params.dateFormat | default ":date_long") . }}

View File

@@ -0,0 +1,20 @@
{{ $repoColors := site.Data.repoColors }}
{{ $classNameMap := dict }}
{{ range $language, $unused := $repoColors }}
{{ $className := printf "background-color-%s" (md5 $language) }}
{{ $classNameMap = merge $classNameMap (dict $className $language) }}
{{ end }}
{{ $repoLanguages := slice }}
{{ range site.Pages }}
{{ $matchedClasses := findRE `background-color-[a-f0-9]{32}` .Content }}
{{ range $matchedClasses }}
{{ with index $classNameMap . }}
{{ $repoLanguages = $repoLanguages | append . }}
{{ else }}
{{ $repoLanguages = $repoLanguages | append "fallback" }}
{{ end }}
{{ end }}
{{ end }}
{{ return (uniq $repoLanguages) }}

View File

@@ -0,0 +1,13 @@
{{ $uid := .Page.RelPermalink }}
{{ $ctx := . }}
{{ range seq 16 }}
{{ with $ctx }}
{{ $uid = printf "%s-%d" $uid .Ordinal }}
{{ $ctx = .Parent }}
{{ else }}
{{ break }}
{{ end }}
{{ end }}
{{ return md5 $uid }}