From 8019015c1fa0ab0190510e23d7c9db849be355e9 Mon Sep 17 00:00:00 2001 From: liuboaibc Date: Thu, 8 Jul 2021 11:56:23 +0800 Subject: [PATCH] fix Signed-off-by: liuboaibc --- layouts/docs/second.html | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/layouts/docs/second.html b/layouts/docs/second.html index add15eaca..b92810b3c 100644 --- a/layouts/docs/second.html +++ b/layouts/docs/second.html @@ -117,29 +117,14 @@ height="0" width="0" style="display:none;visibility:hidden"> - - {{ define "content" }} - {{ if .context.IsSection }} - {{ .context.LinkTitle }} - {{ else }} - {{ .context.LinkTitle }} - {{ end }} -

{{ .context.Description }}

- {{ $count := add .count 1 }} - {{ if .context.IsSection }} - {{ range (union (where .context.Pages ".context.Params._build.render" "!=" false) .context.Sections).ByWeight }} - {{ template "content" (dict "context" . "count" $count) }} - {{ end }} - {{ else}} - {{ end }} - {{ end }}

{{ .Title }}

{{ .Content }} {{ range (union (where .Pages ".Params._build.render" "!=" false) .Sections).ByWeight }} - {{ template "content" (dict "context" . "count" 2) }} +

{{ .LinkTitle }}

+

{{ .Description }}

{{ end }}