Skip to content

Instantly share code, notes, and snippets.

@5t3ph
Created January 24, 2021 03:27
Show Gist options
  • Save 5t3ph/bf6854f574dcd7d233f5584c18e7dabd to your computer and use it in GitHub Desktop.
Save 5t3ph/bf6854f574dcd7d233f5584c18e7dabd to your computer and use it in GitHub Desktop.
Set a variable for a directory base path for images in Markdown for 11ty

{% set imgBase %}/img/post-directory/{% endset %}

![Alt text]({{ imgBase }}img-name.png)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment