mirror of
				https://github.com/Wonderfall/hugo-WonderMod.git
				synced 2025-10-30 19:35:26 +01:00 
			
		
		
		
	Allow aligning social-icons in homeInfo mode
In Site config
    homeInfoParams:
        AlignSocialIconsTo: "center" # or left or right
			
			
This commit is contained in:
		| @@ -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 }}"> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Aditya Telange
					Aditya Telange