mirror of
				https://github.com/valentineus/popov.link.git
				synced 2025-11-04 06:49:45 +03:00 
			
		
		
		
	Code snippets for inserting images
Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
		
							
								
								
									
										11
									
								
								_includes/image.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								_includes/image.html
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,11 @@
 | 
				
			|||||||
 | 
					{% assign alternative = include.alt | strip_newlines | strip_html | strip | normalize_whitespace | smartify | downcase | capitalize %}
 | 
				
			||||||
 | 
					{% assign identifier = include.id | strip_newlines | strip_html | strip | normalize_whitespace | slugify %}
 | 
				
			||||||
 | 
					{% assign source = include.src | strip_newlines | strip_html | strip | normalize_whitespace | relative_url | uri_escape %}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					<a href="#{{ identifier }}">
 | 
				
			||||||
 | 
					  <img alt="{{ alternative }}" src="{{ source }}" />
 | 
				
			||||||
 | 
					</a>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					<a href="#" class="fullscreen" id="{{ identifier }}">
 | 
				
			||||||
 | 
					  <img alt="{{ alternative }}" src="{{ source }}" />
 | 
				
			||||||
 | 
					</a>
 | 
				
			||||||
		Reference in New Issue
	
	Block a user