add ShowAuthor param
This commit is contained in:
		
							parent
							
								
									9377da773c
								
							
						
					
					
						commit
						2628a07c95
					
				|  | @ -12,9 +12,11 @@ | |||
| {{- $scratch.Add "meta" (slice (i18n "words" .WordCount | default (printf "<span>%d words</span>" .WordCount))) }} | ||||
| {{- end }} | ||||
| 
 | ||||
| {{- if (.Param "ShowAuthor") -}} | ||||
| {{- with (partial "author.html" .) }} | ||||
| {{- $scratch.Add "meta" (slice .) }} | ||||
| {{- end }} | ||||
| {{- end }} | ||||
| 
 | ||||
| {{- with ($scratch.Get "meta") }} | ||||
| {{- delimit . "<span class=\"delimiter\"> · </span>" -}} | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue
	
	 Reorx
						Reorx