mirror of
				https://github.com/gohugoio/hugo.git
				synced 2024-05-11 05:54:58 +00:00 
			
		
		
		
	
		
			
	
	
		
			8 lines
		
	
	
		
			260 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
		
		
			
		
	
	
			8 lines
		
	
	
		
			260 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| 
								 | 
							
								{{$file := .Get "file"}}
							 | 
						||
| 
								 | 
							
								{{- if eq (.Get "markdown") "true" -}}
							 | 
						||
| 
								 | 
							
								{{- $file  | readFile | markdownify -}}
							 | 
						||
| 
								 | 
							
								{{- else if  (.Get "highlight") -}}
							 | 
						||
| 
								 | 
							
								{{-  highlight ($file  | readFile) (.Get "highlight") "" -}}
							 | 
						||
| 
								 | 
							
								{{- else -}}
							 | 
						||
| 
								 | 
							
								{{ $file  | readFile | safeHTML }}
							 | 
						||
| 
								 | 
							
								{{- end -}}
							 |