ilink: clean-up code, naming

This commit is contained in:
Helmut Merz 2022-01-09 12:10:27 +01:00
parent 7b0dc01fee
commit 019b9937f5
3 changed files with 6 additions and 5 deletions

View file

@ -1,5 +1,5 @@
#
# de.yaml 2022-01-08
# de.yaml 2022-01-09
#
about:
@ -21,7 +21,8 @@ author:
other: Autor
backlinks:
other: Verlinkte Seiten
other: Backlinks
#other: Links auf diese Seite
child-articles:
other: Untergeordnete Artikel

View file

@ -68,7 +68,7 @@
(dict "related" $related "header" $header "id" "articles-in-section") -}}
{{- end }}
{{ if .Site.Params.showBacklinks -}}
{{ if not .Site.Params.hideBacklinks -}}
{{- $related := .Scratch.Get "backlinks" -}}
{{- partial "card-related"
(dict "related" $related "header" (i18n "backlinks") "id" "backlinks") -}}

View file

@ -1,7 +1,7 @@
{{- $this := $.Page -}}
{{- $pid := or (.Get "pid") (.Get "pageid") -}}
{{- $pid := or (.Get "pid") (.Get "page") -}}
{{- $pages := where .Site.RegularPages "Params.pageid" "eq" $pid -}}
{{- $frag := .Get "id" -}}
{{- $frag := or (.Get "id") (.Get "anchor") -}}
{{- $fragsep := cond (eq $frag "") "" "#" -}}
{{- $inner := .Inner -}}
{{- range $pages -}}