mirror of
				https://github.com/ItsDrike/itsdrike.com.git
				synced 2025-11-04 04:06:36 +00:00 
			
		
		
		
	Add favicon
This commit is contained in:
		
							parent
							
								
									aae39c13b3
								
							
						
					
					
						commit
						cf116ca468
					
				
					 4 changed files with 11 additions and 1 deletions
				
			
		
							
								
								
									
										8
									
								
								layouts/partials/favicon.html
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								layouts/partials/favicon.html
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,8 @@
 | 
			
		|||
{{ $image := "/img/favicon.png" }}
 | 
			
		||||
{{ $sizes := slice 16 32 64 100 200 }}
 | 
			
		||||
 | 
			
		||||
{{ range $sizes }}
 | 
			
		||||
  {{ $sizes := printf "%dx%d" . . }}
 | 
			
		||||
  <link rel="icon" type="image/png" sizes="{{ $sizes }}"
 | 
			
		||||
    href='{{ ((resources.Get $image | fingerprint).Resize $sizes).RelPermalink }}'>
 | 
			
		||||
{{ end }}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue