mirror of
https://github.com/snachodog/just-the-docs.git
synced 2025-09-12 21:03:32 -06:00
Fix: Protect theme JS file from front matter default for layout (#1447)
Fix #1445 Front matter defaults with unrestricted `scope` (`path: ""`) can affect theme code files. [Jekyll](https://jekyllrb.com/docs/front-matter/#predefined-global-variables) supports using `null` to "produce a file without using a layout file". This PR adds `layout: null` to `just-the-docs.js`, to avoid this file being affected by the following front matter defaults: ```yaml defaults: - scope: path: "" values: layout: "default" ```
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
---
|
||||
layout: null
|
||||
---
|
||||
(function (jtd, undefined) {
|
||||
|
||||
|
Reference in New Issue
Block a user