mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-01-30 16:31:52 +01:00
fix: repo card language color is missed
This commit is contained in:
@@ -54,6 +54,15 @@
|
||||
{{ $cssZoom := resources.Get "lib/zoom/style.css" }}
|
||||
{{ $assets.Add "css" (slice $cssZoom) }}
|
||||
{{ end }}
|
||||
{{ $repoLanguages := partial "functions/repo-languages.html" }}
|
||||
{{ $repoColors := .Site.Data.repoColors }}
|
||||
{{ range $repoLanguages }}
|
||||
{{ $color := index $repoColors . | default "#0077b6" }}
|
||||
{{ $className := printf "background-color-%s" (md5 .) }}
|
||||
{{ $cssRepoColor := printf ".%s { background-color: %s; }" $className $color }}
|
||||
{{ $cssRepoColor = $cssRepoColor | resources.FromString (printf "css/background-color.css") }}
|
||||
{{ $assets.Add "css" (slice $cssRepoColor) }}
|
||||
{{ end }}
|
||||
{{ $bundleCSS := $assets.Get "css" | resources.Concat "css/main.bundle.css" | resources.Minify | resources.Fingerprint
|
||||
(.Site.Params.fingerprintAlgorithm | default "sha512")
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user