mirror of
				https://github.com/Wonderfall/hugo-WonderMod.git
				synced 2025-10-31 03:45:24 +01:00 
			
		
		
		
	list: add ability to hide summary on list
to hide summary, add to site config params: hideSummary: true
This commit is contained in:
		| @@ -38,9 +38,11 @@ | |||||||
|       {{- if .Draft }}<div class="entry-isdraft"><sup>  [draft]</sup></div>{{- end }} |       {{- if .Draft }}<div class="entry-isdraft"><sup>  [draft]</sup></div>{{- end }} | ||||||
|     </h2> |     </h2> | ||||||
|   </header> |   </header> | ||||||
|  |   {{if (ne .Site.Params.hideSummary true)}} | ||||||
|   <section class="entry-content"> |   <section class="entry-content"> | ||||||
|     <p>{{ .Summary | plainify | htmlUnescape }}...</p> |     <p>{{ .Summary | plainify | htmlUnescape }}...</p> | ||||||
|   </section> |   </section> | ||||||
|  |   {{ end }} | ||||||
|   <footer class="entry-footer"> |   <footer class="entry-footer"> | ||||||
|     <time>{{ .Date.Format "January 2, 2006" }}</time> |     <time>{{ .Date.Format "January 2, 2006" }}</time> | ||||||
|     {{ if $.Site.Params.ShowReadingTime }} . |     {{ if $.Site.Params.ShowReadingTime }} . | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Aditya Telange
					Aditya Telange