mirror of
				https://github.com/Wonderfall/hugo-WonderMod.git
				synced 2025-10-30 19:35:26 +01:00 
			
		
		
		
	baseof : use partialCached for header and footer
ref: https://gohugo.io/functions/partialcached/
This commit is contained in:
		| @@ -8,12 +8,12 @@ | |||||||
| <body | <body | ||||||
|     class="{{ if (and (eq .Kind `page` ) (ne .Layout `archives`)) }}single{{ else }}list{{ if .IsHome }} home {{ end }}{{ end }}{{ if eq $.Site.Params.defaultTheme `dark` }} dark {{ end }}" |     class="{{ if (and (eq .Kind `page` ) (ne .Layout `archives`)) }}single{{ else }}list{{ if .IsHome }} home {{ end }}{{ end }}{{ if eq $.Site.Params.defaultTheme `dark` }} dark {{ end }}" | ||||||
|     id="top"> |     id="top"> | ||||||
|     {{- partial "header.html" . }} |     {{- partialCached "header.html" . }} | ||||||
|     <main class="main"> |     <main class="main"> | ||||||
|         {{- block "main" . }} |         {{- block "main" . }} | ||||||
|         {{end }} |         {{end }} | ||||||
|     </main> |     </main> | ||||||
|     {{- partial "footer.html" . }} |     {{- partialCached "footer.html" . }} | ||||||
| </body> | </body> | ||||||
|  |  | ||||||
| </html> | </html> | ||||||
		Reference in New Issue
	
	Block a user
	 Aditya Telange
					Aditya Telange