From 621fbfd82c11739c7e92b68e6a3d52ffcbda50c9 Mon Sep 17 00:00:00 2001 From: "Dr. Ian Simpson" Date: Wed, 8 May 2024 11:03:57 +0100 Subject: [PATCH] test menu exclude --- header copy.html | 30 ++++++++++++++++++++++++++++++ header.html | 6 ++++-- people/iansimpson.md | 1 + 3 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 header copy.html diff --git a/header copy.html b/header copy.html new file mode 100644 index 0000000..f43ecae --- /dev/null +++ b/header copy.html @@ -0,0 +1,30 @@ + diff --git a/header.html b/header.html index f43ecae..3dd8f09 100644 --- a/header.html +++ b/header.html @@ -19,9 +19,11 @@
{%- for path in page_paths -%} {%- assign my_page = site.pages | where: "path", path | first -%} - {%- if my_page.title -%} - {{ my_page.title | escape }} + {% unless page.exclude %} + {%- if my_page.title -%} + {{ my_page.title | escape }} {%- endif -%} + {% endunless %} {%- endfor -%}
diff --git a/people/iansimpson.md b/people/iansimpson.md index f10a997..99674e2 100644 --- a/people/iansimpson.md +++ b/people/iansimpson.md @@ -2,6 +2,7 @@ layout: page title: ian simpson permalink: /people/iansimpson +exclude: true --- testing nested folder \ No newline at end of file