diff --git a/layouts/partials/singlebody.html b/layouts/partials/singlebody.html
index 712406c..8eebe18 100644
--- a/layouts/partials/singlebody.html
+++ b/layouts/partials/singlebody.html
@@ -10,6 +10,9 @@
{{ $sandnamePlural := (slice) }}
+{{ $couldHaveSection := "" }}
+{{ $couldHave := (slice)}}
+
@@ -23,6 +26,9 @@
{{ range $k, $v := $.Site.Data.sandpointsnamegraph }}
{{ $sandnamePlural = $sandnamePlural | append $v }}
+ {{ if eq $scratch.has $v }}
+ {{ $couldHaveSection = $k }}
+ {{ end }}
{{ end }}
{{ $paramsKeys := (slice) }}
{{ range $k, $v := $currentNode.Params }}
@@ -94,5 +100,11 @@
{{- $vld := false -}}{{- range $k, $v := .Page.Params.keywords -}}{{- if eq $k 0 -}}{{- $vld = true -}}
keywords⁄{{- $v -}}{{- else -}}, {{- $v -}}{{- end -}}{{- end -}}{{- with $vld -}}
{{- end -}}
-{{ $var := printf "repo={\"frontmatter\": %s, \"content\": %s, \"path\": \"%s\", \"relpermalink\": \"%s\"}" (jsonify .Params) (jsonify .RawContent) .File.Path .RelPermalink| resources.FromString (printf "js/repo/%s.js" .File.UniqueID) }}
+{{ if $couldHaveSection }}
+ {{ range where .Site.RegularPages "Section" $couldHaveSection }}
+ {{ $couldHave = $couldHave | append .File.LogicalName }}
+ {{ end }}
+{{ end }}
+
+{{ $var := printf "repo={\"frontmatter\": %s, \"content\": %s, \"path\": \"%s\", \"relpermalink\": \"%s\", \"couldhave\": %s }" (jsonify .Params) (jsonify .RawContent) .File.Path .RelPermalink (jsonify $couldHave)| resources.FromString (printf "js/repo/%s.js" .File.UniqueID) }}
{{ $dummy := $var.Permalink }}