Last Updated

Tagged “eleventy”

()

My Obsidian style links worked for the most part - with two exceptions.

  1. If there was a "-" in my title, the links were borked.
  2. If I tried to use a link alias, the links were totally wrong because they were not properly converted to lower case.

To fix these two issues, I added a bit of logic in my customPagePathGenerator function to remove any "-" in the path and replace them with a single space.

()

My Obsidian style links worked for the most part - with two exceptions.

  1. If there was a "-" in my title, the links were borked.
  2. If I tried to use a link alias, the links were totally wrong because they were not properly converted to lower case.

To fix these two issues, I added a bit of logic in my customPagePathGenerator function to remove any "-" in the path and replace them with a single space.

()

In Eleventy, I use Nunjucks shortcodes to interface with the image plugin. But, I don't want to use the shortcodes within Obsidian - I want images visible there as well. So, I wrote some basic code that runs in the pre-build stage to convert Obsidian images in their usual format to a Nunjucks shortcode that looks like: