From de1e0f32dd5c154e7f9ef79053fad64a5c69f34b Mon Sep 17 00:00:00 2001 From: moisseev Date: Thu, 11 Apr 2024 19:23:24 +0300 Subject: [PATCH] Use variables instead of layout Front Matter --- _includes/directory-tree.html | 13 +++++-------- _layouts/doc.html | 10 ++++------ 2 files changed, 9 insertions(+), 14 deletions(-) diff --git a/_includes/directory-tree.html b/_includes/directory-tree.html index a154c5252..f179345c7 100644 --- a/_includes/directory-tree.html +++ b/_includes/directory-tree.html @@ -7,7 +7,7 @@ If the path ends with a slash, the directory itself will be excluded from the tree. Default: The root directory. -Parameters that can be passed as include or Front Matter directory-tree hash: +Parameters that can be passed as include hash, Front Matter directory-tree hash or Liquid variables with directory-tree- prefix: li The generated tree is a list item. Do not wrap an {%- endunless -%} diff --git a/_layouts/doc.html b/_layouts/doc.html index bce89f1d7..ade0fd660 100644 --- a/_layouts/doc.html +++ b/_layouts/doc.html @@ -1,12 +1,10 @@ ---- -directory-tree: - li: true - strong: true - dir_class: "r-docs-subnav list-group-item" ---- {% include top.html %} +{%- assign directory-tree-li = true -%} +{%- assign directory-tree-strong = true -%} +{%- assign directory-tree-dir_class = "r-docs-subnav list-group-item" -%} +