File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 55 {{ $classNameMap = merge $classNameMap (dict $className $language) }}
66{{ end }}
77
8- {{ $classNames := slice }}
8+ {{ $repoLanguages := slice }}
99{{ range site.Pages }}
1010 {{ $matchedClasses := findRE `background-color-[a-f0-9]{32}` .Content }}
1111 {{ range $matchedClasses }}
1212 {{ with index $classNameMap . }}
13- {{ $classNames = $classNames | append . }}
13+ {{ $repoLanguages = $repoLanguages | append . }}
1414 {{ else }}
15- {{ $classNames = $classNames | append "fallback" }}
15+ {{ $repoLanguages = $repoLanguages | append "fallback" }}
1616 {{ end }}
1717 {{ end }}
1818{{ end }}
1919
20- {{ return (uniq $classNames ) }}
20+ {{ return (uniq $repoLanguages ) }}
Original file line number Diff line number Diff line change 4646 {{ $assets.Add "css" (slice $cssCustom) }}
4747 {{ end }}
4848
49- {{ $repoLanguages := partial "get- repo-languages.html" }}
49+ {{ $repoLanguages := partial "functions/ repo-languages.html" }}
5050 {{ $repoColors := .Site.Data.repoColors }}
5151 {{ range $repoLanguages }}
5252 {{ $color := index $repoColors . | default "#0077b6" }}
You can’t perform that action at this time.
0 commit comments