profile-mode : include social icons

usage : in config
 params:
   profileMode:
     socialIcons:
       - name: "<platform>"
         url: : "<link>"
This commit is contained in:
Aditya Telange 2020-08-24 16:58:47 +05:30
parent 6683b85876
commit f852d06923
No known key found for this signature in database
GPG Key ID: 82E844EF3DA99E77
2 changed files with 15 additions and 0 deletions

View File

@ -27,3 +27,13 @@ img {
}
}
.social-icons {
padding: 16px;
}
.social-icons a {
margin: 2px;
padding: 6px;
font-size: 1.4em;
}

View File

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