From 509acb6d8f8a29f5fe45933fab29ac9335fc800e Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Fri, 28 Jul 2017 11:34:59 +0200 Subject: [PATCH] [doc] Add option to select the active sidebar item If the page contains the variable "sidebaractiveurl" in the yaml frontmatter, this is additionally used to select the active item in the sidebar. Useful, if the page doesn't have its own item, but wants to activate e.g. the parent page. --- docs/_includes/sidebar.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_includes/sidebar.html b/docs/_includes/sidebar.html index 235ce7357d..30adf87229 100644 --- a/docs/_includes/sidebar.html +++ b/docs/_includes/sidebar.html @@ -12,7 +12,7 @@ {% if folderitem.output contains "web" %} {% if folderitem.external_url %}
  • {{folderitem.title}}
  • - {% elsif page.url == folderitem.url %} + {% elsif page.url == folderitem.url or page.sidebaractiveurl == folderitem.url %}
  • {{folderitem.title}}
  • {% else %}
  • {{folderitem.title}}