mirror of
				https://github.com/ItsDrike/itsdrike.com.git
				synced 2025-11-04 12:16:37 +00:00 
			
		
		
		
	Automatically format HTML
This commit is contained in:
		
							parent
							
								
									8955235db0
								
							
						
					
					
						commit
						6dfd8c00d4
					
				
					 18 changed files with 174 additions and 189 deletions
				
			
		| 
						 | 
				
			
			@ -1,9 +1,9 @@
 | 
			
		|||
{{ if .Params.image }}
 | 
			
		||||
  {{ .Scratch.Set "image" .Params.image }}
 | 
			
		||||
  {{ if hasPrefix .Params.image "resource:" }}
 | 
			
		||||
    {{ $resource := .Resources.GetMatch (replace .Params.image "resource:" "") }}
 | 
			
		||||
    {{ .Scratch.Set "image" ($resource.Resize "2000x").RelPermalink }}
 | 
			
		||||
  {{ end }}
 | 
			
		||||
 | 
			
		||||
  <img class="mb-3 header-image" src='{{ .Scratch.Get "image" }}' />
 | 
			
		||||
{{ .Scratch.Set "image" .Params.image }}
 | 
			
		||||
{{ if hasPrefix .Params.image "resource:" }}
 | 
			
		||||
{{ $resource := .Resources.GetMatch (replace .Params.image "resource:" "") }}
 | 
			
		||||
{{ .Scratch.Set "image" ($resource.Resize "2000x").RelPermalink }}
 | 
			
		||||
{{ end }}
 | 
			
		||||
 | 
			
		||||
<img class="mb-3 header-image" src='{{ .Scratch.Get "image" }}' />
 | 
			
		||||
{{ end }}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue