publish: true instead of draft: false.
#775
-
|
This is a very minor thing, but I'm wondering if it's possible to invert the logic check, for whether or not to publish something. site.data('draft', true);And then explicitely set This is the first thing I tried doing: site.process([".md"], (files) => {
if (!file.data.publish) {
file.data.draft = true;
}
}I've also tried to splice the Maybe it's possible to do with events? But I don't quite see how. Anyways, just a question of practically no importance, other than my curiosity and very slight style preference. Lume seems great and really simple! Currently in the process of switching my Zola setup to Lume. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
The |
Beta Was this translation helpful? Give feedback.
The
draft=truepages are filtered in the load step, andsite.process()is run after that, so it won't work.You can use the
filter_pagesplugin.