mirror of
				https://github.com/Wonderfall/hugo-WonderMod.git
				synced 2025-10-30 19:35:26 +01:00 
			
		
		
		
	layouts/single : add option to disable Post-meta
i.e. date, author-info
    can be used for posts which are just info, and not a 'post'
set `hideMeta = true` in Page Variables (https://gohugo.io/variables/page/#page-variables)
			
			
This commit is contained in:
		| @@ -6,11 +6,13 @@ | |||||||
|       {{ .Title }} |       {{ .Title }} | ||||||
|       {{- if .Draft }}<div class="entry-isdraft"><sup>  [draft]</sup></div>{{- end }} |       {{- if .Draft }}<div class="entry-isdraft"><sup>  [draft]</sup></div>{{- end }} | ||||||
|     </h1> |     </h1> | ||||||
|  |     {{ if .Params.hideMeta }}{{ else }} | ||||||
|     <div class="post-meta"> |     <div class="post-meta"> | ||||||
|       {{- if or .Params.author .Site.Params.author }} |       {{- if or .Params.author .Site.Params.author }} | ||||||
|       {{- .Params.author | default .Site.Params.author }} · {{ end }} |       {{- .Params.author | default .Site.Params.author }} · {{ end }} | ||||||
|       {{- .Date.Format "January 2, 2006" -}} |       {{- .Date.Format "January 2, 2006" -}} | ||||||
|     </div> |     </div> | ||||||
|  |     {{end}} | ||||||
|   </header> |   </header> | ||||||
|   {{ if .Params.ShowToc }} |   {{ if .Params.ShowToc }} | ||||||
|   <div class="toc"> |   <div class="toc"> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Aditya Telange
					Aditya Telange