| | |
| | | {{ end }} |
| | | {{ end }} |
| | | |
| | | {{ with partialCached "func/socials/Get" "socials/Get" }} |
| | | {{- $config := site.Params.ananke.social -}} |
| | | {{- $networks := $config.follow.networks -}} |
| | | {{- $setups := (collections.Where $config.networks "slug" "in" $networks) }} |
| | | {{ with $setups }} |
| | | {{ $socials_rules := slice }} |
| | | {{ range $service := . }} |
| | | {{ with .color }} |
| | | {{ $rule := printf ` |
| | | .ananke-socials a.%s:hover { |
| | | color: %s |
| | | }` $service.name $service.color }} |
| | | color: %s !important; |
| | | }` $service.slug . }} |
| | | {{ $socials_rules = $socials_rules | append $rule }} |
| | | {{ end }} |
| | | {{ end }} |
| | | {{ with $socials_rules }} |
| | | {{ $socials_rules = delimit . "" }} |
| | | {{ $socials_rules = delimit . " " }} |
| | | {{ $socials_css := $socials_rules | resources.FromString "ananke/css/generated_socials.css" }} |
| | | {{ $assets_to_concat = $assets_to_concat | append $socials_css }} |
| | | {{ end }} |