ilink: clean-up code, naming
This commit is contained in:
		
							parent
							
								
									7b0dc01fee
								
							
						
					
					
						commit
						019b9937f5
					
				
					 3 changed files with 6 additions and 5 deletions
				
			
		|  | @ -1,5 +1,5 @@ | ||||||
| # | # | ||||||
| # de.yaml 2022-01-08 | # de.yaml 2022-01-09 | ||||||
| # | # | ||||||
| 
 | 
 | ||||||
| about: | about: | ||||||
|  | @ -21,7 +21,8 @@ author: | ||||||
|   other: Autor |   other: Autor | ||||||
| 
 | 
 | ||||||
| backlinks: | backlinks: | ||||||
|   other: Verlinkte Seiten |   other: Backlinks | ||||||
|  |   #other: Links auf diese Seite | ||||||
| 
 | 
 | ||||||
| child-articles: | child-articles: | ||||||
|   other: Untergeordnete Artikel |   other: Untergeordnete Artikel | ||||||
|  |  | ||||||
|  | @ -68,7 +68,7 @@ | ||||||
|           (dict "related" $related "header" $header "id" "articles-in-section") -}} |           (dict "related" $related "header" $header "id" "articles-in-section") -}} | ||||||
|     {{- end }} |     {{- end }} | ||||||
| 
 | 
 | ||||||
|     {{ if .Site.Params.showBacklinks -}} |     {{ if not .Site.Params.hideBacklinks -}} | ||||||
|       {{- $related := .Scratch.Get "backlinks" -}} |       {{- $related := .Scratch.Get "backlinks" -}} | ||||||
|       {{- partial "card-related"  |       {{- partial "card-related"  | ||||||
|           (dict "related" $related "header" (i18n "backlinks") "id" "backlinks") -}} |           (dict "related" $related "header" (i18n "backlinks") "id" "backlinks") -}} | ||||||
|  |  | ||||||
|  | @ -1,7 +1,7 @@ | ||||||
| {{- $this := $.Page -}} | {{- $this := $.Page -}} | ||||||
| {{- $pid := or (.Get "pid") (.Get "pageid") -}} | {{- $pid := or (.Get "pid") (.Get "page") -}} | ||||||
| {{- $pages := where .Site.RegularPages "Params.pageid" "eq" $pid -}} | {{- $pages := where .Site.RegularPages "Params.pageid" "eq" $pid -}} | ||||||
| {{- $frag := .Get "id" -}} | {{- $frag := or (.Get "id") (.Get "anchor") -}} | ||||||
| {{- $fragsep := cond (eq $frag "") "" "#" -}} | {{- $fragsep := cond (eq $frag "") "" "#" -}} | ||||||
| {{- $inner := .Inner -}} | {{- $inner := .Inner -}} | ||||||
| {{- range $pages -}} | {{- range $pages -}} | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue