mirror of
				https://github.com/Wonderfall/hugo-WonderMod.git
				synced 2025-10-30 11:25:26 +01:00 
			
		
		
		
	Add post-content only if it exists
				
					
				
			This commit is contained in:
		| @@ -16,11 +16,13 @@ | ||||
| </header> | ||||
| {{- end }} | ||||
|  | ||||
| {{- if .Content }} | ||||
| <div class="post-content"> | ||||
|   {{- if not (.Param "disableAnchoredHeadings") }} | ||||
|   {{- partial "anchored_headings.html" .Content -}} | ||||
|   {{- else }}{{ .Content }}{{ end }} | ||||
| </div> | ||||
| {{- end }} | ||||
|  | ||||
| {{- $pages := union .RegularPages .Sections }} | ||||
|  | ||||
|   | ||||
| @@ -25,11 +25,15 @@ | ||||
|   {{- if (.Param "ShowToc") }} | ||||
|   {{- partial "toc.html" . }} | ||||
|   {{- end }} | ||||
|  | ||||
|   {{- if .Content }} | ||||
|   <div class="post-content"> | ||||
|     {{- if not (.Param "disableAnchoredHeadings") }} | ||||
|     {{- partial "anchored_headings.html" .Content -}} | ||||
|     {{- else }}{{ .Content }}{{ end }} | ||||
|   </div> | ||||
|   {{- end }} | ||||
|  | ||||
|   <footer class="post-footer"> | ||||
|     {{- if .Params.tags }} | ||||
|     <ul class="post-tags"> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Aditya Telange
					Aditya Telange