05 Other Settings
Slugify Note URL
The plugin "slugifies" your URLs by default. In essence this means that a note with the path "My Folder/My Note.md" will get the URL "my-folder/my-note".
You can disable this by turning this setting off.
Slugifying the URL causes some non-English characters, like Chinese characters, to disappear. Resulting in all notes getting an empty URL. If you've experienced this issue, disabling this setting should fix that.
If you want your filepaths in the garden to differ from the vault path, you can add rewrite rules in the "Path Rewrite Rules" section. If, let's say, I want to change the Getting Started folder to instead be named "Quick Start" in the garden it would look like this:
After adding this, all affected notes should show up as changed in the publication center, allowing you to update them.
Rewrite path for single note.
You can also change the note on a per note basis. Using
dg-path in the frontmatter, you can change where a note should be located in the garden. This will overwrite any rules that may apply to that note.
The dg-path property needs the entire filepath you want. For example, if I wanted the "Features" note to instead be located under the "Advanced" folder in the garden I would add the following frontmatter to it:
--- dg-path: "Advanced/Features.md" ---
If you want any of your content to be modified before publishing the note, you can add a filter.
For example say you want to hide text that is inside a specific pattern:
This is some normal text. ::: hidden This is some private text that should not be published. :::
You could then add the following filter.
It also supports Regex groups, meaning you can use $1, $2 etc in the replacement string to insert the first and second regex group and so on.
< Prev | Next: Updating the template >