From 560cc40ec071d9d40f7de0131e6edc392ccbef29 Mon Sep 17 00:00:00 2001 From: trean Date: Wed, 14 Jun 2023 16:19:54 +0200 Subject: [PATCH] added hideInSidebare option to docs sidebar --- qdrant-landing/README.md | 12 +++++++++++- .../themes/qdrant/layouts/partials/docs_sidebar.html | 6 +++--- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/qdrant-landing/README.md b/qdrant-landing/README.md index 9cd098ba7..fcd6dfab1 100644 --- a/qdrant-landing/README.md +++ b/qdrant-landing/README.md @@ -108,4 +108,14 @@ cd qdrant-landing hugo new --kind external-link documentation/.md ``` -It will create a file `content/documentation/.md`. Open it and set the `external_link` parameter to the desired value. \ No newline at end of file +It will create a file `content/documentation/.md`. Open it and set the `external_link` parameter to the desired value. + +### Params + +Additionally, to the standard hugo front matter params, we have the following params: + +```yaml +hideInSidebar: true +``` + +If `true`, the page will not be shown in the sidebar. It can be used in regular documentation pages and in documentation section pages (_index.md). diff --git a/qdrant-landing/themes/qdrant/layouts/partials/docs_sidebar.html b/qdrant-landing/themes/qdrant/layouts/partials/docs_sidebar.html index 11835f553..e1a360737 100644 --- a/qdrant-landing/themes/qdrant/layouts/partials/docs_sidebar.html +++ b/qdrant-landing/themes/qdrant/layouts/partials/docs_sidebar.html @@ -17,7 +17,7 @@
{{ .Title }}
{{ else }} - {{ if .IsPage }} + {{ if and (.IsPage) (not .Params.hideInSidebar) }}