Get rid of a file produced

Hi, sorry for the informative text but I don’t know how to say otherwise. I have this config:

[[module.mounts]]
source = “content”
target = “content”
[[module.mounts]]
source = “content/intro.md”
target = “content/_index.md”
[[module.mounts]]
source = ‘assets’
target = ‘assets’
[[module.mounts]]
source = ‘static’
target = ‘assets’

And want to get rid of the /intro/ and /intro/index.html directory and file produced. Obviously adding

_build:
render: false

Is not what I need, or I can kiss my homepage goodbye.

I assume you have a good reson for not simple renaming “into.md” to “_index.md”?

Yes. I have work habits and name my files according to their content, so I can get at them immediately in a file browser (broot). searching for one “index.md” when there are a dozen of them does not work for me.
In any case, this is how you do it: add this in config.

[[cascade]]
[cascade._build]
render = false
[cascade._target]
path = ‘/intro.md’

I was confused when I was told to use cascade, I don’t really understand why this rule gets to apply after the mounts/remappings and not before, but it does.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.