Closed szgaljic closed 6 years ago
It's not working because your paths are wrong. I don't know if Jekyll's docs have examples, but I'm pretty sure the path's are relative to root folder.
To make this work, try these paths instead.. you need to add _pages/
before the folder names you're currently using.
defaults:
- scope:
path: _pages/intro
type: pages
values:
layout: single
classes: wide
sidebar:
nav: "intro"
- scope:
path: _pages/core
type: pages
values:
layout: single
classes: wide
sidebar:
nav: "core"
Oh man! That Worked! Life saver.... I looked everywhere and nothing indicated that it should be prefixed with _pages.
Thank you for the quick turn around. Feel free to answer on stackoverflow if you want some SO points (i'll close it if no one does).
On Mon, Aug 20, 2018 at 4:31 PM Michael Rose notifications@github.com wrote:
It's not working because your paths are wrong. I don't know if Jekyll's docs have examples, but I'm pretty sure the path's are relative to root folder.
To make try these paths instead you need to add _pages/ before the folder names you're currently using.
defaults:
- scope: path: _pages/intro type: pages values: layout: single classes: wide sidebar: nav: "intro"
- scope: path: _pages/core type: pages values: layout: single classes: wide sidebar: nav: "core"
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mmistakes/minimal-mistakes/issues/1795#issuecomment-414470033, or mute the thread https://github.com/notifications/unsubscribe-auth/AZgaswjxn8F_ZPNnW3JYIKVw4y9FWaK6ks5uSyqTgaJpZM4WEuwG .
Description
_config.yml scope path syntax doesn't seem to work no matter what I try. I am trying to configure two different side bars two different sections of my site from _config.yml but I can't get the pathing to work.
Please see my stackoverflow here. https://stackoverflow.com/questions/51938521/jekyll-front-matter-path-doesnt-work
The only way I can get this to work is by hand adding the sidebar to each page in front matter.
I'm not sure what I'm doing wrong.
Environment
Expected behavior
Steps to reproduce the behavior