Need help with mounts

I must have wrecked my config at some point, I don’t understand. I had those rules in order to rename intro.md _index.md:

[[module.mounts]]
source = "content"
target = "content"

[[module.mounts]]
source = 'assets'
target = 'assets'

[[module.mounts]]
source = "content/intro.md"
target = "content/_index.md"

[[module.mounts]]
source = 'static'
target = 'assets'

[[module.mounts]]
source = '../Images'
target = 'assets/Images'

[[cascade]]
bookHidden = false
bookSearchExclude = false
[cascade._build]
render = false
list = false
[cascade._target]
path = '/intro.md

[[cascade]]
[cascade._build]
list = true
render = false
publishResources = true
[cascade._target]
path = '/docs/**/_index.md'

I’ve been told just remove the dot and extensions.
It has no effect.
It’s simple:

  1. What do I write in order for content/intro.md to be mounted as content/_index.md ?
  2. and what do I write for all docs/**/_index.md (which is to say, all section pages) to not be rended, ever ?

my content directory tree:

content/ 
 ├──􀀂  docs 
 │  ├──􀀂  Biology 
 │  │  ├──􀇱  _index.md 
 │  │  └──􀇱  viral_phenomenon.md 
 │  ├──􀀂  History 
 │  │  ├──􀇱  _index.md 
 │  │  └──􀇱  politics.md 
 │  └──􀀂  Love 
 │     ├──􀇱  _index.md 
 │     └──􀇱  spirituality.md 
 └──􀇱  intro.md

Could you tell me how to rewrite this ? And sorry for having mentioned the last version, I realized that no version works now. So it must be my config.
Thanks for your help.

[[module.mounts]]
source = "content"
target = "content"

[[module.mounts]]
source = "content/intro.md"
target = "content/_index.md"

[[cascade]]
[cascade.build]
list = 'never'
render = 'never'
[cascade._target]
path = '/intro'
[[cascade]]
[cascade.build]
list = 'never'
render = 'never'
[cascade._target]
path = '/docs/**'
kind = 'section'

Thanks, so source and target keep their extension, but not path. Ok. I’ll have to figure out why the menu has disappeared now…

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