diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.xyz> | 2022-12-02 21:49:30 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.xyz> | 2022-12-02 21:49:30 +0530 |
commit | 990edd18be607ce1656b3e67225557ccd0b27389 (patch) | |
tree | fc0d21af15445f5b865b01dc80de90d3dc5b2f7a /layouts | |
parent | 10e34f90342d22b98026296457d728d23cafee5e (diff) |
removed description from non-list pages
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/docs/list.html | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/layouts/docs/list.html b/layouts/docs/list.html index f8d665a..998d504 100644 --- a/layouts/docs/list.html +++ b/layouts/docs/list.html @@ -3,7 +3,9 @@ <h1 class="title" style="{{ if eq (len .Pages) 0 }}text-align: center;{{ end }}"> {{ if .Params.heading }}{{ .Params.heading }}{{ else }}{{ .Title }}{{ end }} </h1> - <p>{{ .Description }}</p> + {{ if ne (len .Pages) 0 }} + <p>{{ .Description }}</p> + {{ end }} {{ .Content }} |