Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
macmartine opened this issue Feb 26, 2023 · 1 comment
Open

Comments

@macmartine
Copy link

macmartine commented Feb 26, 2023

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants