Merge pull request #121 from benbohmer/patch-1
This commit is contained in:
		
						commit
						321e19dc41
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -7,7 +7,7 @@
 | 
				
			||||||
{{$spacedurl := replace $trimmed "%20" " " }}
 | 
					{{$spacedurl := replace $trimmed "%20" " " }}
 | 
				
			||||||
{{$fixedUrl := (cond (hasPrefix $spacedurl "/") $spacedurl (print "/" $spacedurl)) | urlize}}
 | 
					{{$fixedUrl := (cond (hasPrefix $spacedurl "/") $spacedurl (print "/" $spacedurl)) | urlize}}
 | 
				
			||||||
{{$nonexistent := eq (.Page.GetPage $spacedurl).RelPermalink ""}}
 | 
					{{$nonexistent := eq (.Page.GetPage $spacedurl).RelPermalink ""}}
 | 
				
			||||||
{{$rooted := default $spacedurl (strings.TrimRight "/" (.Page.GetPage $spacedurl).RelPermalink) }}
 | 
					{{$rooted := default $spacedurl ((.Page.GetPage $spacedurl).RelPermalink) }}
 | 
				
			||||||
<a
 | 
					<a
 | 
				
			||||||
  {{if not $nonexistent}}href="{{$rooted}}"{{end}}
 | 
					  {{if not $nonexistent}}href="{{$rooted}}"{{end}}
 | 
				
			||||||
  rel="noopener" class="internal-link{{if $nonexistent}} broken{{end}}"
 | 
					  rel="noopener" class="internal-link{{if $nonexistent}} broken{{end}}"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue