If you maintain a Jekyll site with images alongside content, you have written the same path prefix dozens of times. Jekyll FilePath replaces that repetition with a single Liquid tag that builds a predictable asset URL based on the current page or post.

How It Works

The plugin exposes a tag with this shape:

{% filepath filename.png %}

When rendered, it resolves the current page or post path and returns a /files/... URL that matches that document’s location.

Why It Exists

For content-heavy Jekyll sites, small quality-of-life improvements matter. This plugin keeps markdown cleaner, makes asset moves more systematic, and reduces broken links caused by hand-written paths.