social-icons : set icons in Params.socialIcons

* so that it can be accessible to other modes

usage : in config
 params:
  socialIcons:
   - name: "<platform>"
     url: : "<link>"

ref : f852d06923
This commit is contained in:
Aditya Telange 2020-08-27 20:00:01 +05:30
parent 5345b3e6b0
commit faf0ebefa3
No known key found for this signature in database
GPG Key ID: 82E844EF3DA99E77
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@
{{end}} {{end}}
<h1>{{ if .Site.Params.profileMode.title }}{{.Site.Params.profileMode.title}}{{ else }}{{ .Site.Title }}{{end}} <h1>{{ if .Site.Params.profileMode.title }}{{.Site.Params.profileMode.title}}{{ else }}{{ .Site.Title }}{{end}}
</h1> </h1>
{{- with .Site.Params.profileMode.socialIcons }} {{- with .Site.Params.socialIcons }}
<div class="social-icons"> <div class="social-icons">
{{ partial "social-icons.html" . }} {{ partial "social-icons.html" . }}
</div> </div>