mirror of
				https://github.com/Wonderfall/hugo-WonderMod.git
				synced 2025-10-30 19:35:26 +01:00 
			
		
		
		
	Use site function instead of .Site or $.Site
				
					
				
			- The site function provides global access to the same data as the .Site page method. - Current context (`.`) is never considered.
This commit is contained in:
		| @@ -1,4 +1,4 @@ | ||||
| {{- with $.Site.Params.homeInfoParams }} | ||||
| {{- with site.Params.homeInfoParams }} | ||||
| <article class="first-entry home-info"> | ||||
|     <header class="entry-header"> | ||||
|         <h1>{{ .Title | markdownify }}</h1> | ||||
| @@ -7,7 +7,7 @@ | ||||
|         <p>{{ .Content | markdownify }}</p> | ||||
|     </section> | ||||
|     <footer class="entry-footer"> | ||||
|         {{ partial "social_icons.html" $.Site.Params.socialIcons }} | ||||
|         {{ partial "social_icons.html" site.Params.socialIcons }} | ||||
|     </footer> | ||||
| </article> | ||||
| {{- end -}} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Aditya Telange
					Aditya Telange