michal-h21 / vim-zettel

VimWiki addon for managing notes according to Zettelkasten method
MIT License
555 stars 72 forks source link

Question: Using vim-zettel with 11ty - Generating 11ty links on output #135

Open macmartine opened 1 year ago

macmartine commented 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!

michal-h21 commented 1 year ago

So you want to name the names according to their sanitized titles? Try to put this configuration to your .vimrc:

  let g:zettel_format = "%title"

I am not sure if it will match the slugify format though.