mirror of
				https://github.com/Wonderfall/hugo-WonderMod.git
				synced 2025-10-30 11:25:26 +01:00 
			
		
		
		
	Feat: Add page nums in list pages
In site config =>
Params:
    ShowPageNums: true
			
			
This commit is contained in:
		| @@ -87,10 +87,20 @@ | ||||
| <footer class="page-footer"> | ||||
|   <nav class="pagination"> | ||||
|     {{- if $paginator.HasPrev }} | ||||
|     <a class="prev" href="{{ $paginator.Prev.URL | absURL }}">« {{ i18n "prev_page" }}</a> | ||||
|     <a class="prev" href="{{ $paginator.Prev.URL | absURL }}"> | ||||
|       « {{ i18n "prev_page" }}  | ||||
|       {{- if (.Param "ShowPageNums") }} | ||||
|       {{- sub $paginator.PageNumber 1 }}/{{ $paginator.TotalPages }} | ||||
|       {{- end }} | ||||
|     </a> | ||||
|     {{- end }} | ||||
|     {{- if $paginator.HasNext }} | ||||
|     <a class="next" href="{{ $paginator.Next.URL | absURL }}">{{ i18n "next_page" }} »</a> | ||||
|     <a class="next" href="{{ $paginator.Next.URL | absURL }}"> | ||||
|       {{- i18n "next_page" }}  | ||||
|       {{- if (.Param "ShowPageNums") }} | ||||
|       {{- add 1 $paginator.PageNumber }}/{{ $paginator.TotalPages }} | ||||
|       {{- end }} » | ||||
|     </a> | ||||
|     {{- end }} | ||||
|   </nav> | ||||
| </footer> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Aditya Telange
					Aditya Telange