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:
		| @@ -16,7 +16,7 @@ | ||||
|     {{- range $key, $value := .Data.Terms.Alphabetical }} | ||||
|     {{- $name := .Name }} | ||||
|     {{- $count := .Count }} | ||||
|     {{- with $.Site.GetPage (printf "/%s/%s" $type $name) }} | ||||
|     {{- with site.GetPage (printf "/%s/%s" $type $name) }} | ||||
|     <li> | ||||
|         <a href="{{ .Permalink }}">{{ .Name }} <sup><strong><sup>{{ $count }}</sup></strong></sup> </a> | ||||
|     </li> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Aditya Telange
					Aditya Telange