DEV: Remove unused disabled_plugins checks (#13144)

We now bundle Javascript for each theme/plugin separately, and only ship bundles for enabled plugins to the client. Therefore, these disabled_plugins checks are now redundant, and can be removed.
This commit is contained in:
David Taylor
2021-05-26 00:44:58 +01:00
committed by GitHub
parent 7a79bd7da3
commit 8c83803109
4 changed files with 0 additions and 22 deletions

View File

@@ -1,10 +1,4 @@
export default function () {
const { disabled_plugins = [] } = this.site;
if (disabled_plugins.indexOf("styleguide") !== -1) {
return;
}
this.route("styleguide", function () {
this.route("show", { path: ":category/:section" });
});