mirror of
				https://github.com/ItsDrike/itsdrike.com.git
				synced 2025-11-03 19:56:36 +00:00 
			
		
		
		
	Add iframe shortcode
This commit is contained in:
		
							parent
							
								
									900219b281
								
							
						
					
					
						commit
						2eec248847
					
				
					 1 changed files with 10 additions and 0 deletions
				
			
		
							
								
								
									
										10
									
								
								layouts/shortcodes/iframe.html
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								layouts/shortcodes/iframe.html
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,10 @@
 | 
				
			||||||
 | 
					{{ if .Inner }}
 | 
				
			||||||
 | 
					<figure>
 | 
				
			||||||
 | 
					    <iframe src='{{ .Get "src" }}' class='{{ .Get "class" }}'></iframe>
 | 
				
			||||||
 | 
					    <figcaption>
 | 
				
			||||||
 | 
					        <small>{{ .Inner }} <a href='{{ .Get "src" }}'>View Full</a></small>
 | 
				
			||||||
 | 
					    </figcaption>
 | 
				
			||||||
 | 
					</figure>
 | 
				
			||||||
 | 
					{{ else }}
 | 
				
			||||||
 | 
					<iframe src='{{ .Get "src" }}' class='{{ .Get "class" }}'></iframe>
 | 
				
			||||||
 | 
					{{ end }}
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue