diff options
| author | Reorx <novoreorx@gmail.com> | 2022-04-13 21:09:58 +0800 |
|---|---|---|
| committer | Reorx <novoreorx@gmail.com> | 2022-04-13 21:09:58 +0800 |
| commit | 8a0915bb81d1869a2217d8efc9548e1b4b925037 (patch) | |
| tree | 752199a0e0f19eba6ab68cef6c3564532120a703 /layouts/partials/index_profile.html | |
| parent | 8fb2f38f430fd6228e54d52f1dfa7a24a4207ff9 (diff) | |
change the way svg icon is get
use data instead of if else in partial, this makes iterating and display all the icons possible
Diffstat (limited to 'layouts/partials/index_profile.html')
| -rw-r--r-- | layouts/partials/index_profile.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/index_profile.html b/layouts/partials/index_profile.html index 1bb2079..24e34fd 100644 --- a/layouts/partials/index_profile.html +++ b/layouts/partials/index_profile.html @@ -29,7 +29,7 @@ {{- end }} <h1>{{ .title | default site.Title | markdownify }}</h1> <span>{{ .subtitle | markdownify }}</span> - {{- partial "social_icons.html" site.Params.socialIcons -}} + {{- partial "social_icons.html" (dict "icons" site.Params.socialIcons "svg" $.Site.Data.svg) -}} {{- with .buttons }} <div class="buttons"> @@ -42,4 +42,4 @@ {{- end }} </div> {{- end}} -</div>
\ No newline at end of file +</div> |
