Only show vertical bar if necessary in post-meta (#193)
fixes unnecessary "|" shown when post-meta is empty but translations are available
This commit is contained in:
		
							parent
							
								
									24afe952b2
								
							
						
					
					
						commit
						b6842db0a5
					
				|  | @ -12,7 +12,8 @@ | |||
|     {{- if not (.Param "hideMeta") }} | ||||
|     <div class="post-meta"> | ||||
|       {{- partial "post_meta.html" . -}} | ||||
|       {{- if .IsTranslated -}} |  | ||||
|       {{- if .IsTranslated -}} | ||||
|       {{- if or .Params.author $.Site.Params.author $.Site.Params.ShowReadingTime (not .Date.IsZero) }} | {{- end -}} | ||||
|       <ul class="i18n_list"> | ||||
|         {{- i18n "translations" | default "Translations"}}: | ||||
|         {{- range .Translations }} | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue
	
	 Florian Kohrt
						Florian Kohrt