Compare commits
No commits in common. "009f9c4d4e0207c558298e8e169680f1aee7ad75" and "26c20737d66851b25d8feb59c7f7bba9a04c6f3c" have entirely different histories.
009f9c4d4e
...
26c20737d6
2 changed files with 3 additions and 10 deletions
|
@ -9,8 +9,6 @@
|
||||||
{{ $scratch := $s.Get $currentFile }}
|
{{ $scratch := $s.Get $currentFile }}
|
||||||
|
|
||||||
{{ $sandnamePlural := (slice) }}
|
{{ $sandnamePlural := (slice) }}
|
||||||
{{ $sandnameSingular := "" }}
|
|
||||||
{{ $mentionLink := "" }}
|
|
||||||
|
|
||||||
<div class="{{ $scratch.depth | default "crust" }}title"><span class="supt">{{ substr $currentDir 0 -1 }}⁄</span>{{ .Title }}</div>
|
<div class="{{ $scratch.depth | default "crust" }}title"><span class="supt">{{ substr $currentDir 0 -1 }}⁄</span>{{ .Title }}</div>
|
||||||
|
|
||||||
|
@ -33,17 +31,12 @@
|
||||||
{{ $mentions := intersect $paramsKeys $sandnamePlural }}
|
{{ $mentions := intersect $paramsKeys $sandnamePlural }}
|
||||||
{{ range $mention := $mentions }}
|
{{ range $mention := $mentions }}
|
||||||
{{ range $k, $m := index $currentNode.Params $mention }}
|
{{ range $k, $m := index $currentNode.Params $mention }}
|
||||||
{{ range $k, $v := $.Site.Data.sandpointsnamegraph }}
|
{{ $mentionLink := printf "/%s/%s" (substr $mention 0 -1) $m }}
|
||||||
{{ if eq $v $mention }}
|
|
||||||
{{ $mentionLink = printf "/%s/%s" $k $m }}
|
|
||||||
{{ $sandnameSingular = $k }}
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
|
||||||
{{- with $.GetPage $mentionLink -}}
|
{{- with $.GetPage $mentionLink -}}
|
||||||
{{- with not $k -}}
|
{{- with not $k -}}
|
||||||
{{ $closeDivs = true }}
|
{{ $closeDivs = true }}
|
||||||
<div class="has hasauthors">
|
<div class="has hasauthors">
|
||||||
<div class="hassup">{{ with (index $currentNode.Params $mention) }}{{ if gt (len (index $currentNode.Params $mention)) 1 }}{{ $mention }}{{ else }}{{ $sandnameSingular }}{{ end }}{{ end }}⁄</div>
|
<div class="hassup">{{ with (index $currentNode.Params $mention) }}{{ if gt (len (index $currentNode.Params $mention)) 1 }}{{ $mention }}{{ else }}{{ substr $mention 0 -1 }}{{ end }}{{ end }}⁄</div>
|
||||||
<div class="afterhas">
|
<div class="afterhas">
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
<div class="crust">
|
<div class="crust">
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Add table
Reference in a new issue