|
|
|
@ -9,7 +9,8 @@
|
|
|
|
|
{{ $scratch := $s.Get $currentFile }}
|
|
|
|
|
|
|
|
|
|
{{ $sandnamePlural := (slice) }}
|
|
|
|
|
|
|
|
|
|
{{ $sandnameSingular := "" }}
|
|
|
|
|
{{ $mentionLink := "" }}
|
|
|
|
|
|
|
|
|
|
<div class="{{ $scratch.depth | default "crust" }}title"><span class="supt">{{ substr $currentDir 0 -1 }}⁄{{ substr .Title 0 1 }}</span>{{ substr .Title 1 }}</div></div>
|
|
|
|
|
|
|
|
|
@ -32,12 +33,17 @@
|
|
|
|
|
{{ $mentions := intersect $paramsKeys $sandnamePlural }}
|
|
|
|
|
{{ range $mention := $mentions }}
|
|
|
|
|
{{ range $k, $m := index $currentNode.Params $mention }}
|
|
|
|
|
{{ $mentionLink := printf "/%s/%s" (substr $mention 0 -1) $m }}
|
|
|
|
|
{{ range $k, $v := $.Site.Data.sandpointsnamegraph }}
|
|
|
|
|
{{ if eq $v $mention }}
|
|
|
|
|
{{ $mentionLink = printf "/%s/%s" $k $m }}
|
|
|
|
|
{{ $sandnameSingular = $k }}
|
|
|
|
|
{{ end }}
|
|
|
|
|
{{ end }}
|
|
|
|
|
{{- with $.GetPage $mentionLink -}}
|
|
|
|
|
{{- with not $k -}}
|
|
|
|
|
{{ $closeDivs = true }}
|
|
|
|
|
<div class="has hasauthors">
|
|
|
|
|
<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="hassup">{{ with (index $currentNode.Params $mention) }}{{ if gt (len (index $currentNode.Params $mention)) 1 }}{{ $mention }}{{ else }}{{ $sandnameSingular }}{{ end }}{{ end }}⁄</div>
|
|
|
|
|
<div class="afterhas">
|
|
|
|
|
{{- end -}}
|
|
|
|
|
<div class="crust">
|
|
|
|
|