add render-link hook
This commit is contained in:
		
							parent
							
								
									0efa5514d6
								
							
						
					
					
						commit
						a388cd4bcf
					
				
					 2 changed files with 6 additions and 1 deletions
				
			
		
							
								
								
									
										5
									
								
								layouts/_default/_markup/render-link.html
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								layouts/_default/_markup/render-link.html
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,5 @@ | |||
| {{- if hasPrefix .Destination "https://" -}} | ||||
|   <a href="{{ .Destination }}" target="_blank">{{ .Text }}</a> | ||||
| {{- else -}} | ||||
|   <a href="{{ .Destination }}">{{ .Text }}</a> | ||||
| {{- end -}} | ||||
|  | @ -25,4 +25,4 @@ | |||
|   {{- else -}} | ||||
|     <img src="{{ $image.RelPermalink }}" alt="{{ $alt }}" class="{{ $class }}"> | ||||
|   {{- end -}} | ||||
| </p> | ||||
| </p> | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue