Skip to content
This repository has been archived by the owner on Aug 28, 2019. It is now read-only.

Image path pseudo function #131

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

happycollision
Copy link
Contributor

Same idea as gallery in the _includes folder. This one handles image urls and will prepend the {{site.url}} or {{site.url}}/images/ intelligently… or will prepend nothing at all in the case where the string contains // anywhere.

This is a way to make the functionality for background image apply universally to all image paths.

(As such, I replaced the logic that created the background image path with this new technique as well.)

Same idea as the `gallery` include. This one handles image urls and
will prepend the `{{site.url}}` or `{{site.url}}/images/` intelligently.
My regex wasn’t quite right (was too greedy). All fixed.
misterwell pushed a commit to misterwell/misterwell.github.io that referenced this pull request Jan 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant