Commit graph

7 commits

Author SHA1 Message Date
Meitar M
b8721c353e
Fix relative paths to images when a permalink is used.
This commit uses the Jekyll `link` tag to correctly construct the URL to
images with otherwise relative paths. Without this logic, the images
would only load when the landing page's permalink was not altered by the
user. For example, if the permalink is changed to `get-started` in the
Jekyll Front Matter, the relative URLs would become:

    get-started/assets/images/pic08.jpg

However, since the `get-started` path doesn't really exist, this would
fail to load the image.

As of Jekyll 4.0, the `link` tag is safe to use without prepending
`site.baseurl`, so this code works in all situations.
2020-01-31 13:01:47 -05:00
Andrew Banchich
a62f33addf Update elements.md 2017-07-05 21:54:43 +00:00
Andrew Banchich
4c0cd5b232 Revert "Merge branch 'assets' into 'master'"
This reverts merge request !3
2016-08-26 16:00:55 +00:00
Andrew Banchich
ee72c04298 Update elements.md 2016-08-26 15:17:03 +00:00
Andrew Banchich
559528ad2a Update elements.md 2016-08-26 12:59:49 +00:00
Andrew Banchich
66f54c07e0 added images to assets directory 2016-08-25 21:57:00 +00:00
91234b3eaa initial commit 2016-08-25 14:05:54 -04:00