mirror of
				https://github.com/imfing/hextra.git
				synced 2025-10-31 09:54:50 -04:00 
			
		
		
		
	 09728a4aa9
			
		
	
	09728a4aa9
	
	
	
		
			
			- Introduced CSS for image zoom overlay and image styling. - Implemented JavaScript for handling image zoom interactions, including overlay creation and close functionality. - Updated configuration to enable image zoom feature in site parameters. - Added partial for including image zoom assets in the layout.
		
			
				
	
	
		
			14 lines
		
	
	
		
			575 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			575 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| {{/* Optional minimal image zoom assets */}}
 | |
| {{- $js := resources.Get "js/image-zoom.js" -}}
 | |
| {{- $css := resources.Get "css/components/image-zoom.css" -}}
 | |
| 
 | |
| {{- if hugo.IsProduction -}}
 | |
|   {{- $js = $js | minify | fingerprint -}}
 | |
|   {{- $css = $css | minify | fingerprint -}}
 | |
| {{- end -}}
 | |
| 
 | |
| 
 | |
| <link rel="preload" href="{{ $css.RelPermalink }}" as="style" integrity="{{ $css.Data.Integrity }}" />
 | |
| <link href="{{ $css.RelPermalink }}" rel="stylesheet" integrity="{{ $css.Data.Integrity }}" />
 | |
| <script defer src="{{ $js.RelPermalink }}" integrity="{{ $js.Data.Integrity }}"></script>
 |