Commit graph

12 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
a2c41000d8 fixes landing page 2017-04-22 21:11:19 -04:00
Andrew Banchich
4f3384d2a3 fixes some bugs in landing template. will fix the rest asap 2017-04-22 21:02:18 -04:00
Andrew Banchich
bdb31dcc50 various fixes 2016-11-22 00:24:19 -05:00
Andrew Banchich
df8855ec20 Update from Forestry.io - landing.md 2016-11-11 02:39:33 +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
cca7571edc Update landing.md 2016-08-26 15:13:33 +00:00
Andrew Banchich
5b4066f3d9 Update landing.md 2016-08-26 00:57:15 +00:00
Andrew Banchich
fdd4fcf874 Update landing.md 2016-08-26 00:56:48 +00:00
Andrew Banchich
218bfc60f4 Update landing.md 2016-08-26 00:29:37 +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