mirror of
				https://github.com/Wonderfall/hugo-WonderMod.git
				synced 2025-10-31 03:45:24 +01:00 
			
		
		
		
	fix: make homeInfo available only on home
and not all pages
This commit is contained in:
		| @@ -8,15 +8,15 @@ | |||||||
| {{ end }} | {{ end }} | ||||||
| {{ $paginator := .Paginate (where $PageContext.RegularPages "Type" $contentTypeName) }} | {{ $paginator := .Paginate (where $PageContext.RegularPages "Type" $contentTypeName) }} | ||||||
|  |  | ||||||
| {{- if (and $.IsHome (eq $.Site.Params.homeInfoParams.enabled true)) }} |  | ||||||
| {{- partial "homeInfo.html" . }} |  | ||||||
| {{ end }} |  | ||||||
|  |  | ||||||
| {{- range $index, $page := $paginator.Pages }} | {{- range $index, $page := $paginator.Pages }} | ||||||
|  |  | ||||||
| {{- $class := "post-entry" }} | {{- $class := "post-entry" }} | ||||||
| {{- if (and $.IsHome (eq $paginator.PageNumber 1) (eq $index 0) (ne $.Site.Params.homeInfoParams.enabled true)) }} | {{- if (and $.IsHome (eq $paginator.PageNumber 1) (eq $index 0)) }} | ||||||
|  | {{- if (eq $.Site.Params.homeInfoParams.enabled true) }} | ||||||
|  | {{- partial "homeInfo.html" . }} | ||||||
|  | {{else}} | ||||||
| {{- $class = "first-entry" }} | {{- $class = "first-entry" }} | ||||||
|  | {{ end }} | ||||||
| {{- else if .Data.Term }} | {{- else if .Data.Term }} | ||||||
| {{- $class = "post-entry tag-entry" }} | {{- $class = "post-entry tag-entry" }} | ||||||
| {{- end }} | {{- end }} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Aditya Telange
					Aditya Telange