Skip to content

Commit

Permalink
feat: add the socials._color parameter for author pages to disable ic…
Browse files Browse the repository at this point in the history
…on colors
  • Loading branch information
razonyang committed Jun 14, 2023
1 parent fb6b162 commit 21b883f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions layouts/partials/hb/modules/blog/term/socials.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
{{- $color := default true ._color }}
<ul class="nav justify-content-center">
{{ range $name, $id := . }}
{{/* ignore options. */}}
{{- if hasPrefix $name "_" }}
{{- continue }}
{{- end }}
{{- $ctx := dict
"name" $name
"id" $id
"class" "d-flex justify-content-center align-items-center"
"height" "1.75em"
"width" "1.75em"
"color" $color
}}
<li class="nav-item d-flex align-items-center mx-3 mb-3">
{{- partial "hb/modules/socials/link" $ctx }}
Expand Down

0 comments on commit 21b883f

Please sign in to comment.