mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-11-23 19:11:39 +01:00
Allow aligning social-icons in homeInfo mode
In Site config homeInfoParams: AlignSocialIconsTo: "center" # or left or right
This commit is contained in:
parent
fb1c0aeb6f
commit
0989c28a0e
@ -7,7 +7,7 @@
|
||||
{{ .Content | markdownify }}
|
||||
</div>
|
||||
<footer class="entry-footer">
|
||||
{{ partial "social_icons.html" }}
|
||||
{{ partial "social_icons.html" (dict "align" site.Params.homeInfoParams.AlignSocialIconsTo) }}
|
||||
</footer>
|
||||
</article>
|
||||
{{- end -}}
|
||||
|
@ -1,4 +1,4 @@
|
||||
<div class="social-icons">
|
||||
<div class="social-icons" {{ with .align}}align="{{.}}" {{- end }}>
|
||||
{{- range site.Params.socialIcons }}
|
||||
<a href="{{ trim .url " " | safeURL }}" target="_blank" rel="noopener noreferrer me"
|
||||
title="{{ (.title | default .name) | title }}">
|
||||
|
Loading…
Reference in New Issue
Block a user