mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2023-12-21 10:22:58 +01:00
profile-mode : include social icons
usage : in config params: profileMode: socialIcons: - name: "<platform>" url: : "<link>"
This commit is contained in:
parent
6683b85876
commit
f852d06923
@ -27,3 +27,13 @@ img {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.social-icons {
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
.social-icons a {
|
||||
margin: 2px;
|
||||
padding: 6px;
|
||||
font-size: 1.4em;
|
||||
}
|
@ -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 */}}
|
||||
|
Loading…
Reference in New Issue
Block a user