mirror of
				https://github.com/Wonderfall/hugo-WonderMod.git
				synced 2025-10-30 19:35:26 +01:00 
			
		
		
		
	Add support for rtl and ltr shortcodes (#293)
				
					
				
			refer https://github.com/adityatelange/hugo-PaperMod/pull/293#issue-585979395 for usage guide and examples
This commit is contained in:
		 Mohammad Noor Abu Khleif
					Mohammad Noor Abu Khleif
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							306aa9fbfc
						
					
				
				
					commit
					80ad6ec2a3
				
			
							
								
								
									
										15
									
								
								layouts/shortcodes/rtl.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								layouts/shortcodes/rtl.html
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,15 @@ | ||||
| {{ $.Scratch.Set "md" false }} | ||||
|  | ||||
| {{ if .IsNamedParams }} | ||||
| {{ $.Scratch.Set "md" (.Get "md") }} | ||||
| {{ else }} | ||||
| {{ $.Scratch.Set "md" (.Get 0) }} | ||||
| {{ end }} | ||||
|  | ||||
| <div dir="rtl"> | ||||
|   {{ if eq ($.Scratch.Get "md") false }} | ||||
|     {{ .Inner }} | ||||
|   {{ else }} | ||||
|     {{ .Inner | markdownify }} | ||||
|   {{ end }} | ||||
| </div> | ||||
		Reference in New Issue
	
	Block a user