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,5 +1,5 @@ | ||||
| <!DOCTYPE html> | ||||
| <html lang="{{ .Site.Language }}" dir="{{ .Language.LanguageDirection | default "auto" }}"> | ||||
| <html lang="{{ site.Language }}" dir="{{ .Language.LanguageDirection | default "auto" }}"> | ||||
|  | ||||
| <head> | ||||
|     {{- partial "head.html" . }} | ||||
| @@ -9,7 +9,7 @@ | ||||
| {{- if (or (ne .Kind `page` ) (eq .Layout `archives`) (eq .Layout `search`)) -}} | ||||
| {{- print "list" -}} | ||||
| {{- end -}} | ||||
| {{- if eq $.Site.Params.defaultTheme `dark` -}} | ||||
| {{- if eq site.Params.defaultTheme `dark` -}} | ||||
| {{- print " dark" }} | ||||
| {{- end -}} | ||||
| " id="top"> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Aditya Telange
					Aditya Telange