mirror of
				https://github.com/BBaoVanC/bobatheme.git
				synced 2025-10-31 10:03:30 -05:00 
			
		
		
		
	Better related posts section
This commit is contained in:
		| @@ -50,13 +50,17 @@ | ||||
|         {{ .Content }} | ||||
|     </div> | ||||
|  | ||||
|     {{ $related := .Site.RegularPages.Related . | first 5 }} | ||||
|     {{ $related := .Site.RegularPages.Related . | first 10 }} | ||||
|     {{ with $related }} | ||||
|         <h2>{{ i18n "related_posts" }}</h2> | ||||
|         <div class="related-posts"> | ||||
|             {{ range . }} | ||||
|                 {{ .Render "summary/post" }} | ||||
|             {{ end }} | ||||
|         <div class="related"> | ||||
|             <hr> | ||||
|             <h2>{{ i18n "related_posts" }}</h2> | ||||
|             <div class="related-posts"> | ||||
|                 {{ range . }} | ||||
|                     {{ .Render "summary/post" }} | ||||
|                 {{ end }} | ||||
|             </div> | ||||
|             <hr> | ||||
|         </div> | ||||
|     {{ end }} | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user