File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -183,11 +183,13 @@ <h1 class="scroll-mt-36">{{ .Title }}</h1>
183183 </ thead >
184184 < tbody >
185185 {{ range .Pages }}
186- < tr >
187- < td class ="text-left "> < a class ="link " href ="{{ .Permalink }} "> < code > {{ .Title }}</ code > </ a > </ th >
188- {{ $data := index (index site.Data .Params.datafolder) .Params.datafile }}
189- < td class ="text-left "> {{ $data.short }}</ th >
190- </ tr >
186+ {{- if and .Params.datafolder .Params.datafile }}
187+ < tr >
188+ < td class ="text-left "> < a class ="link " href ="{{ .Permalink }} "> < code > {{ .Title }}</ code > </ a > </ th >
189+ {{ $data := index (index site.Data .Params.datafolder) .Params.datafile }}
190+ < td class ="text-left "> {{ $data.short }}</ th >
191+ </ tr >
192+ {{- end }}
191193 {{ end }}
192194 </ tbody >
193195 </ table >
You can’t perform that action at this time.
0 commit comments