Open macmartine opened 1 year ago
I am using vim-zettel, which generates links using filenames, such as:
Link: [Digital Gardens] (20230212203048.md)
Now I want to rewrite these links when 11ty saves out the html, to match the permalinks, which generally look something like this:
"permalink": "/essays/{{ title | slugify }}/"
Any suggestions are how to go about this? Thanks!
So you want to name the names according to their sanitized titles? Try to put this configuration to your .vimrc:
.vimrc
let g:zettel_format = "%title"
I am not sure if it will match the slugify format though.
slugify
I am using vim-zettel, which generates links using filenames, such as:
Link: [Digital Gardens] (20230212203048.md)
Now I want to rewrite these links when 11ty saves out the html, to match the permalinks, which generally look something like this:
"permalink": "/essays/{{ title | slugify }}/"
Any suggestions are how to go about this? Thanks!