'embed' shortcode: provide backlink with anchor (fragment)
This commit is contained in:
		
							parent
							
								
									17e9e85588
								
							
						
					
					
						commit
						0f05d22902
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -7,7 +7,8 @@ | |||
| {{- $btitle := .Get "btitle" -}} | ||||
| 
 | ||||
| {{- range $pages -}} | ||||
|   {{- .Scratch.Add "backlinks" (slice (dict "page" $this "btext" $btext "btitle" $btitle)) -}} | ||||
|   {{- $anchor := anchorize .Title -}} | ||||
|   {{- .Scratch.Add "backlinks" (slice (dict "anchor" $anchor "page" $this "btext" $btext "btitle" $btitle)) -}} | ||||
| ### [{{ .Title }}]({{ .Permalink }}) | ||||
| 
 | ||||
|   {{ .RenderShortcodes }} | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue