mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-11-22 02:21:37 +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 }}
|
{{ .Content | markdownify }}
|
||||||
</div>
|
</div>
|
||||||
<footer class="entry-footer">
|
<footer class="entry-footer">
|
||||||
{{ partial "social_icons.html" }}
|
{{ partial "social_icons.html" (dict "align" site.Params.homeInfoParams.AlignSocialIconsTo) }}
|
||||||
</footer>
|
</footer>
|
||||||
</article>
|
</article>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<div class="social-icons">
|
<div class="social-icons" {{ with .align}}align="{{.}}" {{- end }}>
|
||||||
{{- range site.Params.socialIcons }}
|
{{- range site.Params.socialIcons }}
|
||||||
<a href="{{ trim .url " " | safeURL }}" target="_blank" rel="noopener noreferrer me"
|
<a href="{{ trim .url " " | safeURL }}" target="_blank" rel="noopener noreferrer me"
|
||||||
title="{{ (.title | default .name) | title }}">
|
title="{{ (.title | default .name) | title }}">
|
||||||
|
Loading…
Reference in New Issue
Block a user