mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-12-24 22:59:21 -05: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>
|
</div>
|
||||||
{{end}}
|
{{end}}
|
||||||
<h1>{{ if .Site.Params.profileMode.title }}{{.Site.Params.profileMode.title}}{{ else }}{{ .Site.Title }}{{end}}</h1>
|
<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>
|
||||||
</div>
|
</div>
|
||||||
{{else}} {{/* if not profileMode */}}
|
{{else}} {{/* if not profileMode */}}
|
||||||
|
Loading…
Reference in New Issue
Block a user